[NTLUG:Discuss] Bash script help
Leroy Tennison
leroy_tennison at prodigy.net
Tue Sep 6 23:28:47 CDT 2011
On 09/06/2011 03:30 PM, daniel wrote:
> for i in *.srt; do echo File: \"$i\" ; cat -n \"$i\" ; done
It took me a while (several attempts) but you (we) are making this more
complicated than necessary and defeating the purpose in the process, try
this:
for i in *.srt; do echo File: \"$i\" ; cat -n "$i" ; done
or
for i in *.srt; do echo File: "$i" ; cat -n "$i" ; done
(Note the complete absence of escaping in the above).
More information about the Discuss
mailing list