Sunday 25 August 2013

how to use brackets in a script

how to use brackets in a script

I create this silly script:
#!/bin/bash
#archivo=0
for i in *.esp.srt
do
iconv -f=ISO8859-1 -t=UTF-8 "$i" > "$i.srt"
done
But I have to rename the files before in order to execute the script
properly. If the file is called, for example:
"whatever" (Español (España)).srt
It doesn't work.
I already tried changing this line in my script: for i in *(Español
(España)).srt
But obviously, I'm doing something wrong because it doesn't work.

No comments:

Post a Comment