Created
January 28, 2024 17:51
Revisions
-
thedeemon revised this gist
Jan 28, 2024 . No changes.There are no files selected for viewing
-
thedeemon renamed this gist
Jan 28, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
thedeemon created this gist
Jan 28, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #lang racket/base (require racket/file racket/string) (for ([fname (current-command-line-arguments)]) (displayln fname) (define ls (file->lines fname)) (display-lines-to-file (map (λ (s) (string-trim (string-replace s "\t" " ") " " #:left? #f #:repeat? #t)) ls) fname #:exists 'replace))