06-18-2018, 02:24 PM
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.
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.