cm0002@lemmy.world to Programmer Humor · 3 months agoLinux Userslemmy.mlimagemessage-square151linkfedilinkarrow-up11.33Karrow-down128cross-posted to: [email protected]
arrow-up11.3Karrow-down1imageLinux Userslemmy.mlcm0002@lemmy.world to Programmer Humor · 3 months agomessage-square151linkfedilinkcross-posted to: [email protected]
minus-squaredisobey2623@lemmy.dbzer0.comlinkfedilinkarrow-up2·3 months agoYou saying I can just skip cat in that command and it works?
minus-squareulternolinkfedilinkEnglisharrow-up0·3 months agoMy output was empty for that command. Guess why? Because history only gives the last few lines in my system.
minus-squaredisobey2623@lemmy.dbzer0.comlinkfedilinkarrow-up4·3 months agoHow did I not know this. Thank you!
minus-squareoozynozh@sh.itjust.workslinkfedilinkarrow-up2·3 months agoit’s grep STRING FILE to be precise or awk '/STRING/′ FILE if you prefer that for some reason
You saying I can just skip cat in that command and it works?
history | grep 'cat'My output was empty for that command.
Guess why?
Because
historyonly gives the last few lines in my system.How did I not know this. Thank you!
it’s
grep STRING FILEto be preciseor
awk '/STRING/′ FILEif you prefer that for some reason