2 ms·
My daily bash pattern. cat file cat file | grep something
by Hikikomori 5y ago
My daily bash pattern.
cat file
cat file | grep something
- Eduard 5y agohttps://security.stackexchange.com/questions/56307/can-cat-ing-a-file-be-a-potential-security-risk https://security.stackexchange.com/questions/56307/can-cat-i...
- phist_mcgee 5y agoI prefer less tbh, less pollution of the term output.
- amp108 5y agoYou could just `grep "something" file.
- penguin_booze 5y agoIndeed - it's a known anti-pattern[0]. [0] https://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat https://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat