Is this a homework assignment? (Requests for help with homework assignments must be submitted in the Homework & Coursework Questions forum and must include a fully filled in template.)
Where do you have the filename? Is it in a shell variable? Is it in a file?
It's not the best title really, as every thread is requesting help. Could we change it to something more suitable than "Help Me" please?
Additionally, please wrap code and data input/output in CODE tags, like this:-
Quote:
[CODE]This is my code[/CODE]
to produce the following (fixed character width, space respected):-
Code:
This is my code
Not only does it make posts far easier to read, but CODE and ICODE sections respect multiple space and have fixed width characters, which is important for easily seeing input/output requirements.
What are your preferred tools? (C, shell, perl, awk, etc.)
What logical process have you considered? (to help steer us to follow what you are trying to achieve)
Most importantly, What have you tried so far?
There are probably many ways to achieve most tasks, so giving us an idea of your style and thoughts will help us guide you to an answer most suitable to you so you can adjust it to suit your needs in future.
It would help us to know if there is a plan to run this in a loop of some sort and therefore lots of similar file names.
We're all here to learn and getting the relevant information will help us all.