Měnit mezery na tabulátory už bychom také neměli potřebovat
This commit is contained in:
parent
f8379b8b67
commit
1868f96594
1 changed files with 0 additions and 17 deletions
|
@ -1,17 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
if test "$#" -lt 1
|
||||
then
|
||||
echo "Usage: $0 file ..."
|
||||
exit 2
|
||||
fi
|
||||
|
||||
for file in "$@"
|
||||
do
|
||||
# Do the sed magic: keep replacing 4 spaces at the begining of line
|
||||
sed -i -re '
|
||||
: loop
|
||||
s/^( *) /\1 /
|
||||
t loop
|
||||
' "$file"
|
||||
done
|
Loading…
Reference in a new issue