Public bug reported:
Binary package hint: grep
Hello,
run the folllowing grep command against your passwd file:
# grep -o '^\([^:]*:\)\{3\}' passwd
The output (on gutsy) is:
root:x:0:
0:root:/root:
daemon:x:1:
1:daemon:/usr/sbin:
bin:x:2:
2:bin:/bin:
sys:x:3:
3:sys:/dev:
instead of the expected:
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
Use the same regexp in sed or in kregexpeditor and you get the expected
results.
So me thinks the bug in grep is that it ignores the ^beginning of line
character.
Best regards,
Raphael
** Affects: grep (Ubuntu)
Importance: Undecided
Status: New
--
grep -o wrong output
https://bugs.launchpad.net/bugs/184603
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs