Hi I am just about to write a script but I need a little help to get me started.
I have a directory with txt files and the files names have different names at the start but they all have one thing in common, that they have a creation date in the file name E.G
file1_20031115.dat
anotherfile_20031115.dat
differentfile_20031116.dat
And so on .....
I want to get a script that I can run for example shellscript.ksh that I can add these dates on the end so it will pick up the files with these dates on it and copy the data out of them and place it all in one file into another directory.
E.G
shellscript.ksh 20031115 20031116 20031117
There will never be more than 5 different dates at the end but most times they will be between 3 - 4 dates.
Is this possable??
Thanks in advance.
Ian
I have a directory with txt files and the files names have different names at the start but they all have one thing in common, that they have a creation date in the file name E.G
file1_20031115.dat
anotherfile_20031115.dat
differentfile_20031116.dat
And so on .....
I want to get a script that I can run for example shellscript.ksh that I can add these dates on the end so it will pick up the files with these dates on it and copy the data out of them and place it all in one file into another directory.
E.G
shellscript.ksh 20031115 20031116 20031117
There will never be more than 5 different dates at the end but most times they will be between 3 - 4 dates.
Is this possable??
Thanks in advance.
Ian