Goonstation Forums
Minor DWAINE grep -o option prints empty lines - Printable Version

+- Goonstation Forums (https://forum.ss13.co)
+-- Forum: Discussion (https://forum.ss13.co/forumdisplay.php?fid=6)
+--- Forum: Bug Reports (https://forum.ss13.co/forumdisplay.php?fid=9)
+---- Forum: Resolved (https://forum.ss13.co/forumdisplay.php?fid=16)
+---- Thread: Minor DWAINE grep -o option prints empty lines (/showthread.php?tid=10685)



DWAINE grep -o option prints empty lines - NinjaKyat - 06-18-2018

Doing a grep with the -o options is supposed to print only the matching text instead of the whole line where the match was found, but instead it prints an empty line.

To reproduce:
1. Use a DWAINE console connected to the mainframe.
2. Create or find a file you can grep.
3. type in "grep -o *some text inside the file* *file*".
4. Notice that the output is blank lines.
5. Notice how the 1.5 people that use DWAINE are somewhat upset.

Doing it without the -o option prints out the whole matching line.