Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Minor DWAINE grep -o option prints empty lines
#1
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.


Forum Jump:


Users browsing this thread: 1 Guest(s)