@mao to Programmer Humor@lemmy.ml • 1 month agoDamn no integrated advanced AI-driven solution that analyzes patterns and just predicts the errors? 🤨lemmy.sdf.orgimagemessage-square74arrow-up1394arrow-down18
arrow-up1386arrow-down1imageDamn no integrated advanced AI-driven solution that analyzes patterns and just predicts the errors? 🤨lemmy.sdf.org@mao to Programmer Humor@lemmy.ml • 1 month agomessage-square74
minus-square@rodbiren@midwest.sociallinkfedilinkEnglish9•1 month agoIt’s a command line tool which filters for all lines containing the query. So something like cat log.txt | grep Error5 Would output only lines containing Error5
minus-square@biribiri11@lemmy.mllinkfedilink12•1 month agoIn the back of my mind I know this is there, but the cat | grep pattern is just muscle memory at this point
minus-square@allywilson@lemmy.mllinkfedilink3•1 month agoI’ve been ‘told off’ so many times by the internet for my cat and grep combos that I still do it, then I remove the cat, it still works, and I feel better. shrug
minus-square@expr@programming.devlinkfedilink3•1 month agoJust remember that if you aren’t actually concatenating files, cat is always unnecessary.
minus-square@MehBlah@lemmy.worldlinkfedilink1•1 month agoor if its a complex error cat log.txt|grep keyword1|grep keyword 2 and so on.
It’s a command line tool which filters for all lines containing the query. So something like
cat log.txt | grep Error5
Would output only lines containing Error5
You can just do
In the back of my mind I know this is there, but the
cat | grep
pattern is just muscle memory at this pointI’ve been ‘told off’ so many times by the internet for my cat and grep combos that I still do it, then I remove the cat, it still works, and I feel better. shrug
Just remember that if you aren’t actually concatenating files,
cat
is always unnecessary.for me as well.
or if its a complex error cat log.txt|grep keyword1|grep keyword 2 and so on.