I'm trying to grep and cut using pipes.
file:
c1 c2
e1 e2
e3 e4
this file has space-separated values, but when I execute
cut -f2 -d' ' | grep "e2" example.csv
output is e1 e2
the output should be e2 but I'm not sure if the cut takes input in some other format, in the man pages it says that file name if unspecified then input would be taken.