Re: [OT] - grep

2007-05-04 Thread Krishnamurti L. L. V. Nunes
Em 04/05/07, Bruno Puga[EMAIL PROTECTED] escreveu: Tente dessa forma: cat arquivo | grep -E frase 1|frase2ou cat arquivo | egrep frase 1|frase2 Na verdade, um grep -E Frase1 | Frase2 arquivo (sem usar o cat, passando o arquivo para o próprio grep) é extremamente mais eficiente

Re: [OT] - grep

2007-05-04 Thread Daniel Vieira Dias
Krishnamurti L. L. V. Nunes escreveu: Em 04/05/07, Bruno Puga[EMAIL PROTECTED] escreveu: Tente dessa forma: cat arquivo | grep -E frase 1|frase2ou cat arquivo | egrep frase 1|frase2 Na verdade, um grep -E Frase1 | Frase2 arquivo (sem usar o cat, passando o arquivo para o próprio

Re: [OT] - grep

2007-05-04 Thread Bruno Buys
Daniel Vieira Dias wrote: Krishnamurti L. L. V. Nunes escreveu: Em 04/05/07, Bruno Puga[EMAIL PROTECTED] escreveu: Tente dessa forma: cat arquivo | grep -E frase 1|frase2ou cat arquivo | egrep frase 1|frase2 Na verdade, um grep -E Frase1 | Frase2 arquivo (sem usar o cat, passando

Re: [OT] - grep

2007-05-04 Thread Rodolfo Allan
Isso é teoria dos conjuntos!!! E depois perguntam pra que serve a matemática... Tem como excluir algo na pesquisa, tipo grep frase1 exceto frase2 ? On 04/05/07, Bruno Buys [EMAIL PROTECTED] wrote: Daniel Vieira Dias wrote: Krishnamurti L. L. V. Nunes escreveu: Em 04/05/07, Bruno Puga[EMAIL

Re: [OT] - grep

2007-05-04 Thread Davi
Em Sexta 04 Maio 2007 23:12, Rodolfo Allan escreveu: Isso é teoria dos conjuntos!!! E depois perguntam pra que serve a matemática... Tem como excluir algo na pesquisa, tipo grep frase1 exceto frase2 ? grep -v frase2 man grep... =] []s -- Davi Vidal [EMAIL PROTECTED] [EMAIL PROTECTED

Re: grep | sed do not function inline?

2007-04-27 Thread Michelle Konzack
Am 2007-04-23 11:32:53, schrieb Greg Folkert: Tyler, look at what tail -f it means (basically): -f, --follow[={name|descriptor}] output appended data as the file grows; -f, --follow, and --follow=descriptor are equivalent Which mean it will sit watching the

Re: grep | sed do not function inline?

2007-04-27 Thread Michelle Konzack
Am 2007-04-22 19:32:18, schrieb nicholas: I've seen the same thing with tail -f, and it confuses me as well. I look forward to an expert answer! In this case, sed alone can handle the job, if you want to avoid perl: tail -f mylog | sed -n '/smtg/s/end/notend/p' tail -f mylog | sed -n

Re: grep | sed do not function inline?

2007-04-27 Thread nicholas
Michelle Konzack said: Am 2007-04-22 19:32:18, schrieb nicholas: I've seen the same thing with tail -f, and it confuses me as well. I look forward to an expert answer! In this case, sed alone can handle the job, if you want to avoid perl: tail -f mylog | sed -n '/smtg/s/end/notend/p'

Re: grep | sed do not function inline?

2007-04-23 Thread bilbo
with this --line-buffered switch of grep, but it was not better. But maybe again I didn't wait long enough... ah this time I waited long enough, ok, that was it thanks ! And to Mike and Nicholas: yes you're right sed could do the job alone, I forgot. Thanks for the quick answers, Tudi. -- To UNSUBSCRIBE, email

Re: grep | sed do not function inline?

2007-04-23 Thread Greg Folkert
On Mon, 2007-04-23 at 00:06 +, Tyler Smith wrote: On 2007-04-22, bilbo [EMAIL PROTECTED] wrote: log file which contains a lot of information. I wanted to extract some informations out of it. But when I tried to tail -f mylog | grep 'smtg' | sed -n 's/end/notend/p' no output could

Re: grep | sed do not function inline?

2007-04-23 Thread Tyler Smith
On 2007-04-23, Greg Folkert [EMAIL PROTECTED] wrote: Tyler, look at what tail -f it means (basically): -f, --follow[=3D{name|descriptor}] output appended data as the file grows; -f, --follow, and --follow=3Ddescriptor are equivalent Which mean it will sit

Re: grep | sed do not function inline?

2007-04-23 Thread nicholas
Tyler Smith said: How do you actually run tail with -f? Do you just let it go in it's own xterm and periodically check to see if it has spit out anything of concern? Or can you use it in a terminal you're using for other tasks as a background process? Sounds useful, but I'm not sure exactly how

grep | sed do not function inline?

2007-04-22 Thread bilbo
Hi all, Recently I faced a strange behaviour of the Linux commands. I have a log file which contains a lot of information. I wanted to extract some informations out of it. But when I tried to tail -f mylog | grep 'smtg' | sed -n 's/end/notend/p' no output could be found. Which was quite

Re: grep | sed do not function inline?

2007-04-22 Thread Tyler Smith
On 2007-04-22, bilbo [EMAIL PROTECTED] wrote: log file which contains a lot of information. I wanted to extract some informations out of it. But when I tried to tail -f mylog | grep 'smtg' | sed -n 's/end/notend/p' no output could be found. Which was quite surprising since the following

Re: grep | sed do not function inline?

2007-04-22 Thread Mike Bird
On Sunday 22 April 2007 16:13, bilbo wrote: Recently I faced a strange behaviour of the Linux commands. I have a log file which contains a lot of information. I wanted to extract some informations out of it. But when I tried to tail -f mylog | grep 'smtg' | sed -n 's/end/notend/p' no output

Re: grep | sed do not function inline?

2007-04-22 Thread nicholas
I've seen the same thing with tail -f, and it confuses me as well. I look forward to an expert answer! In this case, sed alone can handle the job, if you want to avoid perl: tail -f mylog | sed -n '/smtg/s/end/notend/p' -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of

RE: why is grep behaving this way ?

2007-03-05 Thread Kevin Ross
Yes, There are lots of alternatives like : who | grep `id -un` who | grep bhasker or even i tried to do this !!! who a grep `logname` a that WORKS ONLY this command who | grep `logname` does not work ! WHY ? Here's another workaround: NAME=`logname`;who|grep $NAME

Re: why is grep behaving this way ?

2007-03-05 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/05/07 12:47, Kevin Ross wrote: Yes, There are lots of alternatives like : who | grep `id -un` who | grep bhasker or even i tried to do this !!! who a grep `logname` a that WORKS ONLY this command who | grep `logname

why is grep behaving this way ?

2007-03-02 Thread Bhasker C V
I have logname command give me this output [EMAIL PROTECTED] ~]$ logname bhaskerv and say i execute this command [EMAIL PROTECTED] ~]$ echo `logname` bhaskerv till this it is all fine BUT [EMAIL PROTECTED] ~]$ who | grep `logname` logname: no login name Usage: grep [OPTION]... PATTERN [FILE

Re: why is grep behaving this way ?

2007-03-02 Thread Salvatore Iovene
On Fri, Mar 02, 2007 at 03:07:37PM +0530, Bhasker C V wrote: [EMAIL PROTECTED] ~]$ who | grep `logname` logname: no login name Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. Weird. Consiedering that this works: who | grep `whoami` Where's the catch

Re: why is grep behaving this way ?

2007-03-02 Thread Håkon Alstadheim
Salvatore Iovene wrote: On Fri, Mar 02, 2007 at 03:07:37PM +0530, Bhasker C V wrote: [EMAIL PROTECTED] ~]$ who | grep `logname` logname: no login name Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. Weird. Consiedering that this works: who

Re: why is grep behaving this way ?

2007-03-02 Thread Matus UHLAR - fantomas
On Fri, Mar 02, 2007 at 03:07:37PM +0530, Bhasker C V wrote: [EMAIL PROTECTED] ~]$ who | grep `logname` logname: no login name Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. On 02.03.07 11:27, H?kon Alstadheim wrote: I'm running SuSE, and can

Re: why is grep behaving this way ?

2007-03-02 Thread Michael Marsh
On 3/2/07, Matus UHLAR - fantomas [EMAIL PROTECTED] wrote: I'd say that logname detects logged user by checking terminal of stdin file handle... Yup: $ echo | strace -o'|grep readlink' logname readlink(/proc/self/fd/0, pipe:[5242235], 511) = 14 $ strace -o'|grep readlink' logname readlink

Re: why is grep behaving this way ?

2007-03-02 Thread Bhasker C V
Yes, There are lots of alternatives like : who | grep `id -un` who | grep bhasker or even i tried to do this !!! who a grep `logname` a that WORKS ONLY this command who | grep `logname` does not work ! WHY ? On Fri, 2007-03-02 at 12:16 +0200, Salvatore Iovene wrote: On Fri, Mar

Re: why is grep behaving this way ?

2007-03-02 Thread Mike McCarty
Bhasker C V wrote: Yes, There are lots of alternatives like : who | grep `id -un` who | grep bhasker or even i tried to do this !!! who a grep `logname` a that WORKS ONLY this command who | grep `logname` does not work ! WHY ? Most likely because logname misbehaves when stdin

Re: why is grep behaving this way ?

2007-03-02 Thread cga2000
PROTECTED] ~]$ who | grep `logname` logname: no login name Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. is there anything i am doing wrong ? bash man page: Each command in a pipeline is executed as a separate process (i.e., in a subshell

screen width of dpkg -l|grep package name

2007-01-25 Thread Tony Heal
I am trying to determine how to get a complete list of installed packages using 'dpkg -l'. Here is my issue. If I use dpkg -l | grep cupsys I get this. Note that the package name is incomplete. I believe this is caused by the screen width getting set to 80 columns. ii cupsys

Re: screen width of dpkg -l|grep package name

2007-01-25 Thread celejar
On 1/25/07, Tony Heal [EMAIL PROTECTED] wrote: [snip] Here is my issue. If I use dpkg –l | grep cupsys I get this. Note that the package name is incomplete. I believe this is caused by the screen width getting set to 80 columns. ii cupsys 1.1.23-10sarge Common UNIX Printing System

RE: screen width of dpkg -l|grep package name

2007-01-25 Thread Tony Heal
No, I did not know about that. Neat trick. Thanks Tony -Original Message- From: celejar [mailto:[EMAIL PROTECTED] Sent: Thursday, January 25, 2007 11:35 AM To: debian-user@lists.debian.org Subject: Re: screen width of dpkg -l|grep package name On 1/25/07, Tony Heal [EMAIL PROTECTED

Re: ¿ GREP con más de 1700 parámetros ? [SOLUCIONADO]

2006-10-12 Thread Manuel
: Re: ¿ GREP con más de 1700 parámetros ? [SOLUCIONADO] Solo como nota mental(no tengo un box con debian ahora mismo) en el directorio /etc hay un archivo con los limites del kernel(y si mal no recuerdo otro con los limites del bash) ahí puedes decirle al kernel que puede abrir mas

Re: Frage zu grep

2006-10-06 Thread Ulrich Fürst
Zeichen zur Auswahl: das p. grep sucht also nach ps, der grep Prozess selber wird aber als grep [p]s gelistet, wo das ps nicht mehr matcht. Dann dürfte er aber doch, wenn man beide Klammern escaped auch das eigentlich zu findende nicht mehr finden!? Warum funktioniert also: ps aux

grep highlighting

2006-09-28 Thread T
Hi The recent grep supports highlighting. How can I make it works? thanks PS. I tried: export GREP_COLOR=red echo abcd | grep abc -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

Re: grep highlighting

2006-09-28 Thread Jeff D
T wrote: Hi The recent grep supports highlighting. How can I make it works? thanks PS. I tried: export GREP_COLOR=red echo abcd | grep abc try this out: export GREP_OPTIONS='--color=auto' GREP_COLOR='1;31' -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject

Re: grep highlighting

2006-09-28 Thread T
On Thu, 28 Sep 2006 14:24:21 -0700, Jeff D wrote: The recent grep supports highlighting. How can I make it works? try this out: export GREP_OPTIONS='--color=auto' GREP_COLOR='1;31' Thanks a lot! That's fast! It works! What does the GREP_COLOR='1;31' mean, where can I find info

Re: grep highlighting

2006-09-28 Thread Jeff D
T wrote: On Thu, 28 Sep 2006 14:24:21 -0700, Jeff D wrote: The recent grep supports highlighting. How can I make it works? try this out: export GREP_OPTIONS='--color=auto' GREP_COLOR='1;31' Thanks a lot! That's fast! It works! What does the GREP_COLOR='1;31' mean, where

RE: ¿ GREP con más de 1700 parámetros ? [SOLUCIO NADO]

2006-09-25 Thread Erik Hurtado Sepulveda (HE / ZAPTV)
-Mensaje original- De: Nelson Castillo [mailto:[EMAIL PROTECTED] Enviado el: Viernes, 22 de Septiembre de 2006 18:23 Para: Debian Lista Asunto: Re: ¿ GREP con más de 1700 parámetros ? [SOLUCIONADO] On 9/22/06, Luis Rodrigo Gallardo Cruz [EMAIL PROTECTED] wrote: (snip) Con find

Re: ¿ GREP con más de 1 700 parámetros ? [SOLUCIONADO]

2006-09-25 Thread Luis Rodrigo Gallardo Cruz
On Mon, Sep 25, 2006 at 04:12:41AM -0400, Erik Hurtado Sepulveda (HE / ZAPTV) wrote: De: Nelson Castillo [mailto:[EMAIL PROTECTED] Enviado el: Viernes, 22 de Septiembre de 2006 18:23 Para: Debian Lista Asunto: Re: ¿ GREP con más de 1700 parámetros ? [SOLUCIONADO] Solo como nota mental

Re: ¿ GREP con más de 1700 parámetros ? [SOLUCIONADO]

2006-09-25 Thread Iñaki
Asunto: Re: ¿ GREP con más de 1700 parámetros ? [SOLUCIONADO] Solo como nota mental(no tengo un box con debian ahora mismo) en el directorio /etc hay un archivo con los limites del kernel(y si mal no recuerdo otro con los limites del bash) ahí puedes decirle al kernel que puede abrir mas

¿ GREP con más de 1700 parámetros ?

2006-09-22 Thread Iñaki
Hoy me ha pasado algo inaúdito para mí. Digamos que he saturado los límites del comando grep así como wc -c. Me explico: Tengo una carpeta mdir con 2 correos en los cuales debo analizar si está contenida una determinada expresión regular. Lo hago así: grep -i -E expresion regular

Re: ¿ GREP con más de 1 700 parámetros ?

2006-09-22 Thread Luis Rodrigo Gallardo Cruz
On Fri, Sep 22, 2006 at 10:23:30PM +0200, Iñaki wrote: ... grep -i -E expresion regular * pero me da error por número demasiado alto de parámetros. Mediante pruebas he concluido que el máximo son unos 1700. La única solución que se me ocurre es examinar los archivos de 1700 en 1700

Re: ¿ GREP con más de 1700 parámetros ?

2006-09-22 Thread Cristian Mitchell
El 22/09/06, Luis Rodrigo Gallardo Cruz[EMAIL PROTECTED] escribió: On Fri, Sep 22, 2006 at 10:23:30PM +0200, Iñaki wrote: ... grep -i -E expresion regular * pero me da error por número demasiado alto de parámetros. Mediante pruebas he concluido que el máximo son unos 1700. La única

Re: ¿ GREP con más de 1700 parámetros ?

2006-09-22 Thread Iñaki
El Viernes, 22 de Septiembre de 2006 22:37, Luis Rodrigo Gallardo Cruz escribió: On Fri, Sep 22, 2006 at 10:23:30PM +0200, Iñaki wrote: ... grep -i -E expresion regular * pero me da error por número demasiado alto de parámetros. Mediante pruebas he concluido que el máximo son unos

Re: ¿ GREP con más de 1700 parámetros ?

2006-09-22 Thread Iñaki
El Viernes, 22 de Septiembre de 2006 22:48, Cristian Mitchell escribió: con fgrep Menos mal que me has avisado de que olvide este correo tuyo, como para no: # fgrep * bash: /bin/fgrep: Argument list too long -- Iñaki

Re: ¿ GREP con más de 1700 parámetros ?

2006-09-22 Thread Alejandro Garrido Mota
Iñaki escribió: Hoy me ha pasado algo inaúdito para mí. Digamos que he saturado los límites del comando grep así como wc -c. Me explico: Tengo una carpeta mdir con 2 correos en los cuales debo analizar si está contenida una determinada expresión regular. Lo hago así: grep -i -E

Re: ¿ GREP con más de 1700 parámetros ? [SOLUCIONADO]

2006-09-22 Thread Iñaki
El Viernes, 22 de Septiembre de 2006 23:24, Alejandro Garrido Mota escribió: La única solución que se me ocurre es examinar los archivos de 1700 en 1700, recoger cada tanda en una variable y aplicar el GREP, pero me da una pereza tener que hacer eso con lo fácil que es sin tanto lío... (pero

Re: ¿ GREP con más de 1700 parámetros ? [SOLUCIONADO]

2006-09-22 Thread Nelson Castillo
Perdón, olvidé indicar antes que ya tengo solucionado el problema gracias al uso de xargs, que divide transparentemente los argumentos pasados y evita el problema. Pero gracias no obstante por tu interés. ;) Con find también se las arregla uno. find . -exec grep PALABRA {} \; -- http

Re: ¿ GREP con más de 1 700 parámetros ?

2006-09-22 Thread Luis Rodrigo Gallardo Cruz
On Fri, Sep 22, 2006 at 10:59:59PM +0200, Iñaki wrote: El Viernes, 22 de Septiembre de 2006 22:37, Luis Rodrigo Gallardo Cruz escribió: On Fri, Sep 22, 2006 at 10:23:30PM +0200, Iñaki wrote: ... grep -i -E expresion regular * pero me da error por número demasiado alto de

Re: ¿ GREP con más de 1700 parámetros ?

2006-09-22 Thread Iñaki
: ... grep -i -E expresion regular * pero me da error por número demasiado alto de parámetros. Mediante pruebas he concluido que el máximo son unos 1700. ... O sea, no es precisamente una solución, pero pue' que te sirva. No, no es una solución. Es la SOLUCION. Je. Perdón, ese

Re: ¿ GREP con más de 1 700 parámetros ? [SOLUCIONADO]

2006-09-22 Thread Luis Rodrigo Gallardo Cruz
también se las arregla uno. find . -exec grep PALABRA {} \; Pero esta solución va a ser tan lenta como el bucle while. Por que la razón de la lentitud es que estas soluciones hacen un 'fork' por cada archivo. Y hacer 'fork' es una operación tardada. Del otro modo, se hace un 'fork' por cada 1700

Re: ¿ GREP con más de 1700 parámetros ? [SOLUCIONADO]

2006-09-22 Thread Nelson Castillo
On 9/22/06, Luis Rodrigo Gallardo Cruz [EMAIL PROTECTED] wrote: (snip) Con find también se las arregla uno. find . -exec grep PALABRA {} \; Pero esta solución va a ser tan lenta como el bucle while. Por que la razón de la lentitud es que estas soluciones hacen un 'fork' por cada archivo. Y

Re: Frage zu grep

2006-09-15 Thread Sascha Vogt
Gebhard Dettmar schrieb: On Thursday 14 September 2006 11:30, Sascha Vogt wrote: Gebhard Dettmar schrieb: On Wednesday 13 September 2006 11:15, Sascha Vogt wrote: Gebhard Dettmar schrieb: [...] mach doch mal ein grep \[p]s :) und vergleichs mit grep [p]s Danke, das war der rettende Hinweis

Re: Frage zu grep

2006-09-15 Thread Gebhard Dettmar
On Friday 15 September 2006 10:45, Sascha Vogt wrote: Gebhard Dettmar schrieb: On Thursday 14 September 2006 11:30, Sascha Vogt wrote: Gebhard Dettmar schrieb: On Wednesday 13 September 2006 11:15, Sascha Vogt wrote: Gebhard Dettmar schrieb: [...] [...] PS: Ich glaube wir lassen

Re: Frage zu grep

2006-09-15 Thread Ulrich Fürst
Tschuldigung, wenn ich doch noch mal nachhake! Michael Bienia [EMAIL PROTECTED] wrote: Die [] bezeichnen eine Zeichenklasse, d.h. eins der angegebenen Zeichen. In unserem Fall steht nur ein Zeichen zur Auswahl: das p. grep sucht also nach ps, der grep Prozess selber wird aber als grep [p]s

Re: Frage zu grep

2006-09-15 Thread Ole Janssen
Am Freitag, 15. September 2006 21:38 schrieb Ulrich Fürst: Michael Bienia [EMAIL PROTECTED] wrote: Die [] bezeichnen eine Zeichenklasse, d.h. eins der angegebenen Zeichen. In unserem Fall steht nur ein Zeichen zur Auswahl: das p. grep sucht also nach ps, der grep Prozess selber wird aber

Re: Frage zu grep

2006-09-15 Thread Michael Bienia
On 2006-09-15 21:38:43 +0200, Ulrich Fürst wrote: Tschuldigung, wenn ich doch noch mal nachhake! Michael Bienia [EMAIL PROTECTED] wrote: Die [] bezeichnen eine Zeichenklasse, d.h. eins der angegebenen Zeichen. In unserem Fall steht nur ein Zeichen zur Auswahl: das p. grep sucht also nach

Re: Frage zu grep

2006-09-14 Thread Gebhard Dettmar
On Wednesday 13 September 2006 11:15, Sascha Vogt wrote: Gebhard Dettmar schrieb: [...] mach doch mal ein grep \[p]s :) und vergleichs mit grep [p]s Danke, das war der rettende Hinweis (bin nicht drauf gekommen, was ps w aus grep [p]s macht): es ist also die schließende eckige Klammer, die

Re: Frage zu grep

2006-09-14 Thread Sascha Vogt
Gebhard Dettmar schrieb: On Wednesday 13 September 2006 11:15, Sascha Vogt wrote: Gebhard Dettmar schrieb: [...] mach doch mal ein grep \[p]s :) und vergleichs mit grep [p]s Danke, das war der rettende Hinweis (bin nicht drauf gekommen, was ps w aus grep [p]s macht): es ist also die

Re: Frage zu grep

2006-09-14 Thread Gebhard Dettmar
On Thursday 14 September 2006 11:30, Sascha Vogt wrote: Gebhard Dettmar schrieb: On Wednesday 13 September 2006 11:15, Sascha Vogt wrote: Gebhard Dettmar schrieb: [...] mach doch mal ein grep \[p]s :) und vergleichs mit grep [p]s Danke, das war der rettende Hinweis (bin nicht drauf

Re: Frage zu grep

2006-09-13 Thread Gebhard Dettmar
On Tuesday 12 September 2006 01:55, Jörg Sommer wrote: Hallo Wolf, Wolf Wiegand [EMAIL PROTECTED] wrote: Jörg Sommer wrote: Alexander Schmehl [EMAIL PROTECTED] wrote: Vergleiche ps w|grep 'ps' und ps w|grep '[p]s'. Ahh, jetzt sehe ich es. Geniale Idee. Ok, ich sehe es nicht

Re: Frage zu grep

2006-09-13 Thread Patrick Cornelißen
Gebhard Dettmar schrieb: verstehe ich nicht. Was bewirkt hier die eckige Klammer? Dass die gesuchte Zeichenkette mit einem p anfangen muss? Wieso das? (Ich finde dazu nichts in der grep Manpage und in regex(7) nur, dass [x] gleich [xX] ist) Gruß, Gebhard In der Prozess Liste steht dann

Re: Frage zu grep

2006-09-13 Thread Sascha Vogt
Gebhard Dettmar schrieb: On Tuesday 12 September 2006 01:55, Jörg Sommer wrote: Hallo Wolf, Wolf Wiegand [EMAIL PROTECTED] wrote: Jörg Sommer wrote: Alexander Schmehl [EMAIL PROTECTED] wrote: Vergleiche ps w|grep 'ps' und ps w|grep '[p]s'. Ahh, jetzt sehe ich es. Geniale Idee. Ok, ich

Re: Frage zu grep

2006-09-13 Thread Michael Bienia
On 2006-09-13 10:44:26 +0200, Gebhard Dettmar wrote: On Tuesday 12 September 2006 01:55, Jörg Sommer wrote: Hallo Wolf, Wolf Wiegand [EMAIL PROTECTED] wrote: Jörg Sommer wrote: Alexander Schmehl [EMAIL PROTECTED] wrote: Vergleiche ps w|grep 'ps' und ps w|grep '[p]s'. Ahh

Re: Frage zu grep

2006-09-12 Thread Wolf Wiegand
Jörg Sommer wrote: Hallo Wolf, Wolf Wiegand [EMAIL PROTECTED] wrote: Jörg Sommer wrote: Alexander Schmehl [EMAIL PROTECTED] wrote: Vergleiche ps w|grep 'ps' und ps w|grep '[p]s'. Ahh, jetzt sehe ich es. Geniale Idee. Ok, ich sehe es nicht. Warum/wie funktioniert das

[SOLVED!!!!]Re: Frage zu grep

2006-09-11 Thread Boris Andratzek
Nochmal vielen Dnak an alle Beteiligten, aber ich habe wirklich 'schon' die Lösung! Ich kannte pgrep einfach noch nicht Thanks, Boris

Re: Frage zu grep

2006-09-11 Thread Alexander Schmehl
* Jörg Sommer [EMAIL PROTECTED] [060911 01:27]: Wenn's schon grep sein soll, warum dann nicht etwas eleganter? ps w | grep [p]icsscale Und gegen was soll das helfen? Zahnschmerzen? Schlaflosigkeit bei Vollmond? Vergleiche ps w|grep 'ps' und ps w|grep '[p]s'. Yours sincerely, Alexander

Re: Frage zu grep

2006-09-11 Thread Ulf Volmer
On Mon, Sep 11, 2006 at 10:32:36AM +0200, Alexander Schmehl wrote: * Jörg Sommer [EMAIL PROTECTED] [060911 01:27]: Wenn's schon grep sein soll, warum dann nicht etwas eleganter? ps w | grep [p]icsscale Und gegen was soll das helfen? Zahnschmerzen? Schlaflosigkeit bei Vollmond

Re: Frage zu grep

2006-09-11 Thread Reinhold Plew
Von: Ulf Volmer [EMAIL PROTECTED] On Mon, Sep 11, 2006 at 10:32:36AM +0200, Alexander Schmehl wrote: * Jörg Sommer [EMAIL PROTECTED] [060911 01:27]: Wenn's schon grep sein soll, warum dann nicht etwas eleganter? ps w | grep [p]icsscale Und gegen was soll das helfen

Re: Frage zu grep

2006-09-11 Thread Patrick Cornelißen
Ulf Volmer wrote: [EMAIL PROTECTED]:~$ ps w|grep 'ps' 11049 pts/8R+ 0:00 ps w [EMAIL PROTECTED]:~$ ps w|grep '[p]s' 11051 pts/8R+ 0:00 ps w Irgendwas mache ich wohl flasch. Ja sh-2.05b$ ps w|grep '[p]s' 6887 pts/2R+ 0:00 ps w sh-2.05b$ ps w|grep 'ps' 6889 pts/2

Re: Frage zu grep

2006-09-11 Thread Jörg Sommer
Hallo Alexander, Alexander Schmehl [EMAIL PROTECTED] wrote: * J=F6rg Sommer [EMAIL PROTECTED] [060911 01:27]: Wenn's schon grep sein soll, warum dann nicht etwas eleganter? ps w | grep [p]icsscale Und gegen was soll das helfen? Zahnschmerzen? Schlaflosigkeit bei Vollmon= d? Vergleiche

Re: Frage zu grep

2006-09-11 Thread Wolf Wiegand
Jörg Sommer wrote: Alexander Schmehl [EMAIL PROTECTED] wrote: Vergleiche ps w|grep 'ps' und ps w|grep '[p]s'. Ahh, jetzt sehe ich es. Geniale Idee. Ok, ich sehe es nicht. Warum/wie funktioniert das? Wolf -- Büroschimpfwort des Tages: Leitzluder - Kollege, dessen Sozialkontakte einzig

Re: Frage zu grep

2006-09-11 Thread Jörg Sommer
Hallo Wolf, Wolf Wiegand [EMAIL PROTECTED] wrote: Jörg Sommer wrote: Alexander Schmehl [EMAIL PROTECTED] wrote: Vergleiche ps w|grep 'ps' und ps w|grep '[p]s'. Ahh, jetzt sehe ich es. Geniale Idee. Ok, ich sehe es nicht. Warum/wie funktioniert das? Weil ps den Prozess „grep [p

Frage zu grep

2006-09-10 Thread Boris Andratzek
Moin zusammen, ich habe eingrundsätzliches Problem: Man fragt ja gerne 'mal die Prozessliste ab und selektiert die Ausgabe mittels grep, z.B.: linux-srv:/bin# ps w | grep picsscale Ich suche hier also einen Prozess 'picscale' Dabei bekomme ich manchmal eine leere Ausgabe (= Prozess läuft

Re: Frage zu grep

2006-09-10 Thread Alexander Schmehl
* Boris Andratzek [EMAIL PROTECTED] [060910 13:34]: Das ist naklar nicht die Antwort, die ich suche, denn ich möchte (z.B. in einem Shell-Script) ermitteln, ob der picscale-Prozess läuft oder nicht. Das fällt aber schwer, wenn die Ausgabe nicht konstant ist! Wie löst man dieses Problemchen?

Re: Frage zu grep

2006-09-10 Thread Wolf Wiegand
Moin, Boris Andratzek wrote: Das ist naklar nicht die Antwort, die ich suche, denn ich möchte (z.B. in einem Shell-Script) ermitteln, ob der picscale-Prozess läuft oder nicht. Das fällt aber schwer, wenn die Ausgabe nicht konstant ist! Wie löst man dieses Problemchen? Mit pgrep(1). hth,

[solved] Re: Frage zu grep

2006-09-10 Thread Boris Andratzek
Wolf Wiegand wrote: Moin, Boris Andratzek wrote: Das ist naklar nicht die Antwort, die ich suche, denn ich möchte (z.B. in einem Shell-Script) ermitteln, ob der picscale-Prozess läuft oder nicht. Das fällt aber schwer, wenn die Ausgabe nicht konstant ist! Wie löst man dieses Problemchen?

Re: Frage zu grep

2006-09-10 Thread Frank Dietrich
Hi Boris, Boris Andratzek [EMAIL PROTECTED] wrote: Man fragt ja gerne 'mal die Prozessliste ab und selektiert die Ausgabe mittels grep, z.B.: linux-srv:/bin# ps w | grep picsscale Dabei bekomme ich manchmal eine leere Ausgabe (= Prozess läuft nicht), aber manchmal eben auch den grep-Prozess

Re: Frage zu grep

2006-09-10 Thread frank paulsen
Boris Andratzek [EMAIL PROTECTED] writes: Das ist naklar nicht die Antwort, die ich suche, denn ich möchte (z.B. in einem Shell-Script) ermitteln, ob der picscale-Prozess läuft oder nicht. Das fällt aber schwer, wenn die Ausgabe nicht konstant ist! Wie löst man dieses Problemchen? pgrep

Re: Frage zu grep

2006-09-10 Thread Ulf Volmer
On Sun, Sep 10, 2006 at 01:34:03PM +0200, Boris Andratzek wrote: linux-srv:/bin# ps w | grep picsscale Ich suche hier also einen Prozess 'picscale' Dabei bekomme ich manchmal eine leere Ausgabe (= Prozess läuft nicht), aber manchmal eben auch den grep-Prozess selbst: Wenn es unbedingt

Re: Frage zu grep

2006-09-10 Thread Alexander Schmehl
* Ulf Volmer [EMAIL PROTECTED] [060910 19:10]: Wenn es unbedingt grep sein soll: ps w | grep -v grep | grep picsscale echo JEPP Wenn's schon grep sein soll, warum dann nicht etwas eleganter? ps w | grep [p]icsscale Yours sincerely, Alexander -- http://learn.to/quote/ http://www.catb.org

Re: Frage zu grep

2006-09-10 Thread Jörg Sommer
Hallo Boris, Boris Andratzek [EMAIL PROTECTED] wrote: linux-srv:/bin# ps w | grep picsscale Ich suche hier also einen Prozess 'picscale' Dabei bekomme ich manchmal eine leere Ausgabe (= Prozess läuft nicht), aber manchmal eben auch den grep-Prozess selbst: 6241 pts/0R+ 0:00 grep

Re: Frage zu grep

2006-09-10 Thread Jörg Sommer
Hallo Alexander, Alexander Schmehl [EMAIL PROTECTED] wrote: * Ulf Volmer [EMAIL PROTECTED] [060910 19:10]: Wenn es unbedingt grep sein soll: ps w | grep -v grep | grep picsscale echo JEPP Wenn's schon grep sein soll, warum dann nicht etwas eleganter? ps w | grep [p]icsscale Und gegen

Re: grep

2006-08-13 Thread Jörg Sommer
Hallo Matthias, Matthias Houdek [EMAIL PROTECTED] wrote: Hallo Klaus Becker, hallo auch an alle anderen Donnerstag, 10. August 2006 17:01 - Klaus Becker wrote: Am Donnerstag 10 August 2006 15:46 schrieb Matthias Houdek: \b(Montag|Dienstag|Mittwoch|...)\b Es ist ein französischer Text

Re: sed (was: grep)

2006-08-11 Thread Matthias Houdek
Hallo Richard Mittendorfer, hallo auch an alle anderen Donnerstag, 10. August 2006 23:17 - Richard Mittendorfer wrote: Also sprach Matthias Houdek [EMAIL PROTECTED] (Thu, 10 Aug 2006 sed 's/(Lundi|Mardi|Mercredi|Jeudi|Vendredi)//g' datei sed -r 's/(Lundi|Mardi|Mercredi|Jeudi|Vendredi)//g'

Re: grep

2006-08-11 Thread Matthias Houdek
Hallo Klaus Becker, hallo auch an alle anderen Donnerstag, 10. August 2006 23:03 - Klaus Becker wrote: Am Donnerstag 10 August 2006 22:34 schrieb Matthias Houdek: sed 's/(Lundi|Mardi|Mercredi|Jeudi|Vendredi)//g' datei sollte dir den veränderten Text auf den Screen schreiben. Das verändert

Re: grep

2006-08-11 Thread Matthias Houdek
Hallo Wolf Wiegand, hallo auch an alle anderen Donnerstag, 10. August 2006 23:22 - Wolf Wiegand wrote: Hallo, Matthias Houdek wrote: sed 's/(Lundi|Mardi|Mercredi|Jeudi|Vendredi)//g' datei Damit das so funktioniert, muss noch die Option -r angegeben werden. Außerdem kann sed in

Re: grep

2006-08-11 Thread Klaus Becker
Am Freitag 11 August 2006 09:51 schrieb Matthias Houdek: Hallo Klaus Becker, hallo auch an alle anderen Donnerstag, 10. August 2006 23:03 - Klaus Becker wrote: Am Donnerstag 10 August 2006 22:34 schrieb Matthias Houdek: sed 's/(Lundi|Mardi|Mercredi|Jeudi|Vendredi)//g' datei sollte dir

Re: grep

2006-08-11 Thread Christian Frommeyer
Am Freitag 11 August 2006 10:48 schrieb Klaus Becker: Wo habt ihr das alles her? In der manpage zu sed steht das nicht drin. In der Manpage zu regex? Sieht nicht gerade leicht verdaulich aus. Gibt es da etwas komplettes, aber verdaulich und wenn möglich auf germanisch? Googel weiß meistens

Re: grep

2006-08-11 Thread Klaus Becker
Am Freitag 11 August 2006 11:05 schrieb Christian Frommeyer: Am Freitag 11 August 2006 10:48 schrieb Klaus Becker: Wo habt ihr das alles her? In der manpage zu sed steht das nicht drin. In der Manpage zu regex? Sieht nicht gerade leicht verdaulich aus. Gibt es da etwas komplettes, aber

Re: grep

2006-08-11 Thread Ulf Volmer
On Fri, Aug 11, 2006 at 11:28:00AM +0200, Klaus Becker wrote: Am Freitag 11 August 2006 11:05 schrieb Christian Frommeyer: Googel weiß meistens Rat. in Selfhtml gibts auch was zu Regechsen Meinst du nicht SelfLinux? http://de.selfhtml.org/navigation/suche/index.htm?Suchanfrage=regex cu

Re: grep

2006-08-11 Thread Peter Wiersig
On Fri, Aug 11, 2006 at 10:48:52AM +0200, Klaus Becker wrote: Am Freitag 11 August 2006 09:51 schrieb Matthias Houdek: Also so: sed 's/\(Lundi\|Mardi\|Mercredi\|Jeudi\|Vendredi\)//g' datei sollte es gehen. Wo habt ihr das alles her? In der manpage zu sed steht das nicht drin. aber

Doku zu RegEx (was Re: grep)

2006-08-11 Thread Matthias Houdek
. Was in Perl geht, muss bei grep oder sed _so_ noch lange nicht funktionieren und umgekehrt. -- Gruß MaxX Bitte beachten: Diese Mailadresse nimmt nur Listenmails entgegen. Für PM bitte den Empfänger gegen den Namen in der Sig tauschen.

Re: grep

2006-08-10 Thread Klaus Becker
Hallo, noch ne grep-Frage. In einer Datei befinden sich an diversen Stellen die Namen der Wochentage von Montag bis Freitag. Ist es möglich, diese Worte mit einem einzigen Befehl aus der Datei zu entfernen? Gruß Klaus

Re: grep

2006-08-10 Thread Christian Frommeyer
Am Donnerstag 10 August 2006 15:29 schrieb Klaus Becker: noch ne grep-Frage. In einer Datei befinden sich an diversen Stellen die Namen der Wochentage von Montag bis Freitag. Ist es möglich, diese Worte mit einem einzigen Befehl aus der Datei zu entfernen? grep -e 's/Montag//g' -e ... -e 's

Re: grep

2006-08-10 Thread Helmut Franke
On Thu, Aug 10, 2006 at 03:29:05PM +0200, Klaus Becker wrote: noch ne grep-Frage. In einer Datei befinden sich an diversen Stellen die Namen der Wochentage von Montag bis Freitag. Ist es möglich, diese Worte mit einem einzigen Befehl aus der Datei zu entfernen? fgrep -v {wochentagstring

Re: grep

2006-08-10 Thread Helmut Franke
On Thu, Aug 10, 2006 at 03:30:19PM +0200, Christian Frommeyer wrote: grep -e 's/Montag//g' -e ... -e 's/Freitag//g' Das sieht mir aus, als wäre es etwas für sed. Alles Gute Helmut H. Franke -- Avatar Chat Systeme: http://www.amiculi.net http://pgm.amoris.org -- Haeufig gestellte Fragen

Re: grep

2006-08-10 Thread Matthias Houdek
Hallo Helmut Franke, hallo auch an alle anderen Donnerstag, 10. August 2006 15:35 - Helmut Franke wrote: On Thu, Aug 10, 2006 at 03:29:05PM +0200, Klaus Becker wrote: noch ne grep-Frage. In einer Datei befinden sich an diversen Stellen die Namen der Wochentage von Montag bis Freitag. Ist es

Re: grep

2006-08-10 Thread Matthias Houdek
Hallo Klaus Becker, hallo auch an alle anderen Donnerstag, 10. August 2006 15:29 - Klaus Becker wrote: Hallo, noch ne grep-Frage. In einer Datei befinden sich an diversen Stellen die Namen der Wochentage von Montag bis Freitag. Ist es möglich, diese Worte mit einem einzigen Befehl aus der

Re: grep

2006-08-10 Thread Christian Frommeyer
Am Donnerstag 10 August 2006 15:37 schrieb Helmut Franke: On Thu, Aug 10, 2006 at 03:30:19PM +0200, Christian Frommeyer wrote: grep -e 's/Montag//g' -e ... -e 's/Freitag//g' Das sieht mir aus, als wäre es etwas für sed. *lol* Ja. Da war ich in Gedanken wohl weit weg... Gruß Chris

Re: grep

2006-08-10 Thread Klaus Becker
Am Donnerstag 10 August 2006 15:46 schrieb Matthias Houdek: Hallo Klaus Becker, hallo auch an alle anderen Donnerstag, 10. August 2006 15:29 - Klaus Becker wrote: Hallo, noch ne grep-Frage. In einer Datei befinden sich an diversen Stellen die Namen der Wochentage von Montag bis Freitag

Re: grep

2006-08-10 Thread Matthias Houdek
grep-Frage. In einer Datei befinden sich an diversen Stellen die Namen der Wochentage von Montag bis Freitag. Ist es möglich, diese Worte mit einem einzigen Befehl aus der Datei zu entfernen? Grep findet nur, aber mit sed und einem entsprechenden RegEx sollte es gehen, am einfachsten

<    1   2   3   4   5   6   7   8   9   10   >