Skip to content

Commit

Permalink
added comments to an utility
Browse files Browse the repository at this point in the history
  • Loading branch information
lformaggia committed Feb 14, 2024
1 parent ad0c556 commit 717bce2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Extras/to-unix
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/bin/bash
#
# A simple utility to transform a windows text file to a
# unix text file, strimming out te hideous cr/lf pair.
# For safety, it keeps the old file(s) by adding the suffix
# .backup. You can remove them if everything is ok (and normally it is).
# The script make sure that the converted file keeps permissions and
# modification times as the original one. The only difference is the way
# newline is represented.
#
SUFFIX=backup
for f in $*; do
echo $f
Expand Down

0 comments on commit 717bce2

Please sign in to comment.