File: fix_tab

package info (click to toggle)
maxima 5.49.0%2Bdsfg-3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 128,992 kB
  • sloc: lisp: 437,845; fortran: 14,665; tcl: 10,143; sh: 4,598; makefile: 2,206; ansic: 447; java: 374; python: 262; perl: 201; xml: 60; awk: 28; sed: 15; javascript: 2
file content (14 lines) | stat: -rwxr-xr-x 255 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

pattern=`printf "\t"`
bad_files=`find . -name '*.texi' -print0 | xargs -0 grep -l -e "$pattern"`

[ "x$bad_files" = "x" ] && exit 0

for f in $bad_files ; do
    echo "Fixing TAB in $f"
    rm -rf foo
    expand $f > foo
    mv -f foo $f
done