Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Feature/Restore] grep
#1
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.

Reply
#2
to be fair the hotkey thing cant be patched
Reply
#3
(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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)