retroforth/example/delete-file.retro
crc c3c9c40157 add delete-file example, remove temporary test file
FossilOrigin-Name: 817b050cd42020eed1d5604da2998d04c13c698f69070b43f801d1606f6e3aef
2021-05-04 17:43:37 +00:00

13 lines
168 B
Forth
Executable file

#!/usr/bin/env retro
This will delete the file specified on the command
line.
Example:
./delete-file.retro /tmp/foo
~~~
#0 script:get-argument file:delete
~~~