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


Messages In This Thread
[Feature/Restore] grep - by The Grim Sleeper - 01-26-2018, 11:36 AM
RE: [Feature/Restore] grep - by ZeWaka - 01-26-2018, 04:57 PM
RE: [Feature/Restore] grep - by cyberTripping - 01-26-2018, 10:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)