I have a file with several lines, each line with a separator | into multiple columns. I can grep for a specific row, and I can cut a specific column, but I cannot figure out how to do this.
grep '^1001' customer
captures lines starting at 1001 from a file named customer
cut -d "|" -f 3 customer
cuts column 3 from all rows in the client file.
So....
grep '^1001' customer | cut -d "|" -f 3 customer
source share