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
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
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
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
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
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
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
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'
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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]
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
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
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]
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
:
...
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Nochmal vielen Dnak an alle Beteiligten, aber ich habe wirklich 'schon'
die Lösung! Ich kannte pgrep einfach noch nicht
Thanks,
Boris
* 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
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
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
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
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
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
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
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
* 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?
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,
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?
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
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
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
* 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
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
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
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
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'
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
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
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
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
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
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
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
. 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.
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
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
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
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
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
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
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
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
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
401 - 500 of 1159 matches
Mail list logo