yesman@lemmy.world to linuxmemes@lemmy.world · 11 months agoCtrl+Alt+Tlemmy.worldimagemessage-square244fedilinkarrow-up11.39Karrow-down125cross-posted to: [email protected]
arrow-up11.37Karrow-down1imageCtrl+Alt+Tlemmy.worldyesman@lemmy.world to linuxmemes@lemmy.world · 11 months agomessage-square244fedilinkcross-posted to: [email protected]
minus-squareCrack0n7uesday@lemmy.worldlinkfedilinkarrow-up5·11 months agoI don’t think I’ve ever used grep outside of a CLI.
minus-squareElderWendigo@sh.itjust.workslinkfedilinkarrow-up6·11 months agoSurely you’ve used something roughly equivalent like searching a text, be it web page or other document, for a word or filtering a spreadsheet?
minus-squareTlaloc_Temporal@lemmy.calinkfedilinkarrow-up1arrow-down1·11 months agoHow would one use grep for a webpage in a browser? Does the page need to be accessed outside the browser?
minus-squarerambaroo@lemmy.worldlinkfedilinkarrow-up4arrow-down1·11 months agoYou should be able to use curl to get the HTML and then pipe it to grep.
minus-squareaard@kyu.delinkfedilinkarrow-up3·11 months agoEmacs grep lets you run grep, and formats the results in a buffer from where you can then easily visit the files at the match location.
I don’t think I’ve ever used grep outside of a CLI.
Surely you’ve used something roughly equivalent like searching a text, be it web page or other document, for a word or filtering a spreadsheet?
How would one use grep for a webpage in a browser? Does the page need to be accessed outside the browser?
You should be able to use curl to get the HTML and then pipe it to grep.
Emacs grep lets you run grep, and formats the results in a buffer from where you can then easily visit the files at the match location.