Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Rename-a-file/REBOL/rename-a-file.rebol
Normal file
19
Task/Rename-a-file/REBOL/rename-a-file.rebol
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
rename %input.txt %output.txt
|
||||
rename %docs/ %mydocs/
|
||||
|
||||
; Unix. Note that there's no path specification used for the
|
||||
; new name. "Rename" is not "move".
|
||||
|
||||
rename %/input.txt %output.txt
|
||||
rename %/docs/ %mydocs/
|
||||
|
||||
; DOS/Windows:
|
||||
|
||||
rename %/c/input.txt %output.txt
|
||||
rename %/c/docs/ %mydocs/
|
||||
|
||||
; Because REBOL treats data access schemes as uniformly as possible,
|
||||
; you can do tricks like this:
|
||||
|
||||
rename ftp://username:password@ftp.site.com/www/input.txt %output.txt
|
||||
rename ftp://username:password@ftp.site.com/www/docs/ %mydocs/
|
||||
Loading…
Add table
Add a link
Reference in a new issue