C
captain747480
Guest
I need to be able to strip the _DateStamp from a filename, use the resulting filename to create a directory and then move the file to the created directory without the Date Stamp in the filename.
So 'blah_120709.rec' moves to a file 'blah.rec' in directory 'blah'.
I've done some searching and found lots of posts about awk and sed but I'm afraid they're over my head.
Could someone help me with a Linux script that will do this.
Thanks in advance
So 'blah_120709.rec' moves to a file 'blah.rec' in directory 'blah'.
I've done some searching and found lots of posts about awk and sed but I'm afraid they're over my head.
Could someone help me with a Linux script that will do this.
Thanks in advance