08-22-2010
8,
0
Join Date: Aug 2010
Last Activity: 30 August 2010, 4:40 PM EDT
Posts: 8
Thanks Given: 3
Thanked 0 Times in 0 Posts
06252007_template.twj to 06252007_abc.twj
Hi,
I am working in the SH shell. I have a bunch of files in a directory dir/
06252007_template.twj
06262007_template.twj
06272007_template.twj
...
Now I want to duplicate these files to
06252007_abc.twj
06262007_abc.twj
06272007_abc.twj
...
I was wondering if there was a simple way like a one liner to do this task.
I have another thing to do after this. In each of the xxxx2007_template.twj files there is a string XXXXX|YYYYY, which I want to replace with the string 70|AAPL in the newly created xxxx2007_abc files.
I was wondering if there a smart way to do this.
Thanks in advance.