cm0002@lemmy.world to Programmer Humor@programming.dev · 8 days agoLinux Userslemmy.mlimagemessage-square149fedilinkarrow-up11.24Karrow-down125cross-posted to: [email protected]
arrow-up11.21Karrow-down1imageLinux Userslemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 8 days agomessage-square149fedilinkcross-posted to: [email protected]
minus-squaredisobey2623@lemmy.dbzer0.comlinkfedilinkarrow-up2·7 days agoYou saying I can just skip cat in that command and it works?
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up0·7 days 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·7 days agoHow did I not know this. Thank you!
minus-squareoozynozh@sh.itjust.workslinkfedilinkarrow-up2·7 days 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
history
only gives the last few lines in my system.How did I not know this. Thank you!
it’s
grep STRING FILE
to be preciseor
awk '/STRING/′ FILE
if you prefer that for some reason