- Sep 12, 2015
- 1
- 0
- 4,510
I need an automatic system. There are a lot of special characters that all need to be removed from more than 1 file.
for f in *.txt; do sed 's/[^[:alnum:]]//g' "$f"; done
for f in *.txt; do sed 's/[^[:alnum:][:space:]]//g' "$f"; done
