Data files coming in different names in a file name called process.txt.
1. shipments_yyyymmdd.gz
2 Order_yyyymmdd.gz
3. Invoice_yyyymmdd.gz
4. globalorder_yyyymmdd.gz
The process needs to discard all the below files and only process two of the 4 file names available
Invoice_yyyymmdd.gz
globalorder_yyyymmdd.gz
How can I exclude the above files when doing selecting from the required files from process.txt
for e.gg i tried
cat process.txt | grep -v "Invoice*" | grep -v "globalorder*"
but its spitting out all the names. How can I exclude these files