Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
grep command?
#5
(01-20-2018, 01:29 PM)kremlin Wrote: ignore the WIP directory
NEVA!!!!
(01-20-2018, 01:29 PM)kremlin Wrote: printing lines that contain a match string is good enough for 99.999% of players
I concur.


So after some testing, it seems the grep command works fine for '/datum/computer/file/record' and neatly prints out all the lines containing the matching string.
If you try it on a file that isn't record, the game slows to a crawl, which would explain why this isn't in-game at the moment. Adding an additional break-point stops that from happening.
The code makes no mention of a response for 'directory'.
But we will see about that.
Reply


Messages In This Thread
grep command? - by The Grim Sleeper - 01-20-2018, 11:16 AM
RE: grep command? - by kremlin - 01-20-2018, 11:46 AM
RE: grep command? - by The Grim Sleeper - 01-20-2018, 12:37 PM
RE: grep command? - by kremlin - 01-20-2018, 01:29 PM
RE: grep command? - by The Grim Sleeper - 01-21-2018, 06:32 AM
RE: grep command? - by The Grim Sleeper - 01-21-2018, 09:30 AM
RE: grep command? - by kremlin - 01-21-2018, 09:50 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)