Goonstation Forums
[Feature/Restore] grep - Printable Version

+- Goonstation Forums (https://forum.ss13.co)
+-- Forum: Discussion (https://forum.ss13.co/forumdisplay.php?fid=6)
+--- Forum: Patches (https://forum.ss13.co/forumdisplay.php?fid=30)
+---- Forum: Implemented (https://forum.ss13.co/forumdisplay.php?fid=31)
+---- Thread: [Feature/Restore] grep (/showthread.php?tid=9938)



[Feature/Restore] grep - The Grim Sleeper - 01-26-2018

So rather then spend my time on something useful or desired by the community, like having ';' be the hotkey for radio-talk, I spend my time fixing up a neglected piece of turbo-nerdery for that aspect of the game nobody can be bothered with:

grep

the TermOS command for searching for text in other text!

Key features:
  • Warnings when files can not be read.
  • -s option to suppress those warnings.
  • -i option for case insensitive searches.
  • -o option for print_only_match (no idea what that is, thank you AIBM, your code still works)
  • -r to search within folders.
  • Not crashing the server when some fucking asshat makes a symbolic link inside a folder that targets a super of that folder and then running 'grep -r' on any folder in that hierarchy.




RE: [Feature/Restore] grep - ZeWaka - 01-26-2018

to be fair the hotkey thing cant be patched


RE: [Feature/Restore] grep - cyberTripping - 01-26-2018

(01-26-2018, 11:36 AM)The Grim Sleeper Wrote: Not crashing the server when some fucking asshat makes a symbolic link inside a folder that targets a super of that folder and then running 'grep -r' on any folder in that hierarchy.

lol

but yeah this is some cool shit and i support all termOS nerdery