mao@lemmy.sdf.org to Programmer Humor@lemmy.ml · 1 个月前Damn no integrated advanced AI-driven solution that analyzes patterns and just predicts the errors? 🤨lemmy.sdf.orgimagemessage-square74fedilinkarrow-up1393arrow-down18
arrow-up1385arrow-down1imageDamn no integrated advanced AI-driven solution that analyzes patterns and just predicts the errors? 🤨lemmy.sdf.orgmao@lemmy.sdf.org to Programmer Humor@lemmy.ml · 1 个月前message-square74fedilink
minus-squarerodbiren@midwest.sociallinkfedilinkEnglisharrow-up9·1 个月前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
minus-squareporous_grey_matter@lemmy.mllinkfedilinkarrow-up9·1 个月前You can just do grep Error5 log.txt
minus-squarebiribiri11@lemmy.mllinkfedilinkarrow-up12·1 个月前In the back of my mind I know this is there, but the cat | grep pattern is just muscle memory at this point
minus-squareexpr@programming.devlinkfedilinkarrow-up3·1 个月前Just remember that if you aren’t actually concatenating files, cat is always unnecessary.
minus-squareallywilson@lemmy.mllinkfedilinkarrow-up3·1 个月前I’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-squareMehBlah@lemmy.worldlinkfedilinkarrow-up1·1 个月前or 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 pointJust remember that if you aren’t actually concatenating files,
cat
is always unnecessary.I’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
for me as well.
or if its a complex error cat log.txt|grep keyword1|grep keyword 2 and so on.