Hi,

I have a directory structure 

----obj
----c_test
----cpp_test
----result

There are some exe files in obj by the name ctest001.out, ctest002.out, ...
,ctest044.out and some more files cpptest001.out, cpptest002.out, ... ,
cpptest083.out.

That makes around 127 files.
I want to run a tool on these  files with some options. The tool outputs
some lines, I want to capture those outputs and redirect them to a file for
each of the objects, with the name ctest001.dmp, etc., i-e- , remove the
.out extension and append a .dmp extension. Finally all these 127 dmp files
are to be placed in the result dir. I would like to write a shell script for
the same. How do I do this with a for loop like structure and also manage to
remove the extension and append a new one?

Thanx in advance.

Regards,

Venky

          ================================================
To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header
To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header
Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org
          =================================================

Reply via email to