mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 01:37:19 +00:00
8 lines
279 B
Clojure
8 lines
279 B
Clojure
# Remove carriage returns from file. Since piping things on
|
|
# windows may add bad line endings, we can just force removal
|
|
# with this script.
|
|
(def fname ((dyn :args) 1))
|
|
(def source (slurp fname))
|
|
(def new-source (string/replace-all "\r" "" source))
|
|
(spit fname new-source :wb)
|