linux - What is the difference between cat source.txt | grep x and grep x source.txt? -


this question has answer here:

i saw example 1 did this:

cat source.txt | grep 

but like:

grep source.txt 

what's difference between two?

the first 1 classical “useless use of cat” (uuoc).


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -