0x4E4F@sh.itjust.works to linuxmemes@lemmy.world · 1 year agoLinux terminal users be likesh.itjust.worksimagemessage-square89fedilinkarrow-up1679arrow-down120
arrow-up1659arrow-down1imageLinux terminal users be likesh.itjust.works0x4E4F@sh.itjust.works to linuxmemes@lemmy.world · 1 year agomessage-square89fedilink
minus-squaresnake@lemmy.worldlinkfedilinkarrow-up4·1 year agocat .bash_history | grep keyword But yeah pretty much.
minus-square1337@lemmy.worldlinkfedilinkarrow-up5·1 year agoWhy not just history | grep keyword then? Works in any directory.
minus-squareanother_kbin_addict@lemmy.worldlinkfedilinkarrow-up1·1 year agoYeah, I grep on history and then !<number> to execute the line I want
cat .bash_history | grep keyword
But yeah pretty much.
Why not just
history | grep keyword
then? Works in any directory.Yeah, I grep on history and then !<number> to execute the line I want