What I gave is just an example but your script didn't work exactly what I need. The cut command doesn't work as the files are not of equal length
This is what I am exactly looking for
There are two files in one directory say
/project/files/ABC_Employee.txt
/project/files/ABC_user.txt
I want to move them to an archive folder with the current date at the end
/project/files/archive/ABC_Employee_20120416.txt
/project/files/archive/ABC_user_20120416.txt
Sorry for the trouble.
Thanks.
---------- Post updated at 04:45 PM ---------- Previous update was at 04:43 PM ----------
Corona688,
yeah and i do not have any admin privileges to install a command also the script may be executed in different servers. So, if I installed in dev and it will be a problem in prod, right?
If it cannot me done then the last thing to do is write two move commands
Thanks