I have a file named DeployList.txt and it contains sample lines as below.
Database/test.sql
Tivoli/jobstr01.js
Tivoli/res01.res
Tivoli/job01.job
Datastage/test.dsx
I need to grep lines starting with "Tivoli/", but I would need the .res lines first, followed by the .job and finally the .js lines. Any other pattern would follow subsequently . So the output would look like...
Tivoli/res01.res
Tivoli/job01.job
Tivoli/jobstr01.js
So I am stuck till..
grep -e ^Tivoli/ DeployList.txt
And I don't want to create any further temporary files for this purpose.