Is there a way to perform a character translation on multiple files?
Something similar to a mv *.txt /TextFiles/. which moves all .txt files to the new dir.
If I do a tr -s ' ' '_' < *.txt (which I want to replace all spaces with underscores in all .txt files), I get a shell error.
Maybe with awk?
nawk '/ / {gsub(" ","_"print}' *.txt
But this just spits it out to the userspace. An IO redirect results in another shell error.
thanks
Dean
Something similar to a mv *.txt /TextFiles/. which moves all .txt files to the new dir.
If I do a tr -s ' ' '_' < *.txt (which I want to replace all spaces with underscores in all .txt files), I get a shell error.
Maybe with awk?
nawk '/ / {gsub(" ","_"print}' *.txt
But this just spits it out to the userspace. An IO redirect results in another shell error.
thanks
Dean