I am trying to create a shell script for removing special characters, like {} () !, 'etc. . So far I have referred here to a previous question, but I get a strange error message:
-bash-3.2 $ ./test2.sh ./test2.sh: line 7: Unseen EOF `` './test2.sh To Match: Line 10: Syntax Error: Unexpected End of File
test2.sh
#! / Bin / Bash shopt -s nullglob * if file for [-f "$ file"]; So newfile = "` $ echo $ file | tr-d '[{} (), \!]' | Tr-d "\" "|
Not sure if I Why are you going wrong on this, files are named I / O:
folder - 01 folder 02! Folder (03) folder four_thread
the desired output
folder 01 folder 02 folder 03 folder four three
Thank you in advance.
for shopch -s extglob shopt -s for nullglob in;; echo "mv $ i $ {i // [[: punct:]] / } ";
Comments
Post a Comment