Rename a file: Difference between revisions
→{{header|TXRl}}: Added.
m (→{{header|Scala}}: typo Straight) |
(→{{header|TXRl}}: Added.) |
||
Line 998:
ERROR/STOP RENAME ("docs","mydocs",-std-)
</lang>
=={{header|TXR}}==
TXR works with native paths.
<lang txr>@(do (rename-path "input.txt" "output.txt")
;; Windows
(rename-path "C:\\input.txt "C:\\output.txt")
;; Unix
(rename-path "/input.txt" "/output.txt"))</lang>
Directories are renamed the same way; <code>input.txt</code> could be a directory.
=={{header|UNIX Shell}}==
|