I made a copy of all the backups made on Wed of every week The time stamp of each file is not sorted but the day is Wednesday of every file
Now, I need to sort each file based on time Stamp e.g if date is 1-May then it should first display the backup files of 1-May then it should display the files of 8-May
I used this command but of course it is slapping me with error
sort $(cat /home/emerg/Wedbackup.txt)
sort: invalid option -- w
As i don't know how to use the output of one command as input of 2nd command. I need advice how to do it.