I'm running the following on multiple files in a directory, and. It works fine, however I would like the most recent file be at the top and the oldest at the bottom. Is this possible ?
grep "Test" /export/home/test/market1* > /export/home/test_history/market1.HIS.txt
/export/home/test/market1.test.0602101616 Test Passed
/export/home/test/market1.test.0602101621 Test Passed
/export/home/test/market1.test.0602101626 Test Passed
/export/home/test/market1.test.0602101631 Test Passed
Can I grep the files in reverse order so my history file would look like this ?
/export/home/test/market1.test.0602101631 Test Passed
/export/home/test/market1.test.0602101626 Test Passed
/export/home/test/market1.test.0602101621 Test Passed
/export/home/test/market1.test.0602101616 Test Passed
grep "Test" /export/home/test/market1* > /export/home/test_history/market1.HIS.txt
/export/home/test/market1.test.0602101616 Test Passed
/export/home/test/market1.test.0602101621 Test Passed
/export/home/test/market1.test.0602101626 Test Passed
/export/home/test/market1.test.0602101631 Test Passed
Can I grep the files in reverse order so my history file would look like this ?
/export/home/test/market1.test.0602101631 Test Passed
/export/home/test/market1.test.0602101626 Test Passed
/export/home/test/market1.test.0602101621 Test Passed
/export/home/test/market1.test.0602101616 Test Passed