bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep only knows 80 character lines


From: alexander . strauch
Subject: grep only knows 80 character lines
Date: Thu, 12 Dec 2002 09:34:48 +0100


Hi @ gnu.org,
a very annoying thing, because I lost my faith in grep.  I discovered it, when I
tried to find a process.
This cannot be true, can it?

cheers
Alex

The processes containing "asagent" should be found:
output from "ps -aux" shows them:
root      3128  0.0  0.0  2304 1308 ?        S    Dec11   0:00
/usr/CYEagent/asagentd
root      3248  0.0  0.0  2312 1324 ?        S    Dec11   0:00
/usr/CYEagent/asagentd
root      3249  0.0  0.0  2576  828 ?        S    Dec11   0:00 asbr
root      3263  0.0  0.0  2312 1324 ?        S    Dec11   0:00
/usr/CYEagent/asagentd
root      3264  0.0  0.0  2576  828 ?        S    Dec11   0:00 asbr
root      3278  0.0  0.0  2312 1324 ?        S    Dec11   0:00
/usr/CYEagent/asagentd
root      3279  0.0  0.0  2576  828 ?        S    Dec11   0:00 asbr
root      3293  0.0  0.0  2312 1324 ?        S    Dec11   0:00
/usr/CYEagent/asagentd
root      3294  0.0  0.0  2576  828 ?        S    Dec11   0:00 asbr
atas0003  4128  0.0  0.2 18716 10236 ?       S    08:55   0:00 kdeinit: konsole
-icon konsole -miniicon konsole -caption Terminal
atas0003  4129  0.0  0.0  2152  956 pts/2    S    08:55   0:00 /usr/bin/ksh
atas0003  4131  0.0  0.0  2400 1424 pts/2    S    08:55   0:00 bash
root      4136  0.0  0.0  2360 1360 pts/2    S    08:56   0:00 bash
root      4298  0.0  0.0  2676  916 pts/2    R    09:18   0:00 ps -aux


egrep finds the characters 78-80:
atviws01:/home/atas0003#  ps -aux | egrep asa
root      3128  0.0  0.0  2304 1308 ?        S    Dec11   0:00 /usr/CYEagent/asa
root      3248  0.0  0.0  2312 1324 ?        S    Dec11   0:00 /usr/CYEagent/asa
root      3263  0.0  0.0  2312 1324 ?        S    Dec11   0:00 /usr/CYEagent/asa
root      3278  0.0  0.0  2312 1324 ?        S    Dec11   0:00 /usr/CYEagent/asa
root      3293  0.0  0.0  2312 1324 ?        S    Dec11   0:00 /usr/CYEagent/asa
root      4303  0.0  0.0  1364  480 pts/2    S    09:19   0:00 egrep asa

egrep does not look into characters > 80
atviws01:/home/atas0003# ps -aux | egrep asagentd
root      4305  0.0  0.0  1364  480 pts/2    S    09:19   0:00 egrep asagentd

atviws01:/home/atas0003# grep --v
grep (GNU grep) 2.4.2

Copyright 1988, 1992-1999, 2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]