Re: grep et expression régulière

2010-01-14 Thread Korrignu
fabrice régnier a écrit : salut la liste, L'expression régulière que je passe à grep ne lui plait pas. Mais je ne vois pas mon erreur. Pour moi, il devrait me sortir 1234567890;01;02;12/06/2010; C'est à dire que je recherche les lignes qui commencent par un numérique avec de 4 à 12

Re: grep et expression régulière

2010-01-14 Thread Benoit Mauduit
Le Thu, 14 Jan 2010 17:12:38 +0100, fabrice régnier regnier@free.fr a écrit : salut la liste, L'expression régulière que je passe à grep ne lui plait pas. Mais je ne vois pas mon erreur. Pour moi, il devrait me sortir 1234567890;01;02;12/06/2010; C'est à dire que je recherche les

Re: grep et expression r égulière

2010-01-14 Thread Yves Rutschle
On Thu, Jan 14, 2010 at 05:12:38PM +0100, fabrice régnier wrote: FR-PORT:/tmp# grep ^[0-9]{4,12}; toto Problème de dialecte: $ grep ^[0-9]\{4,12\}; toto 1234567890;01;02;12/06/2010; Y. -- Lisez la FAQ de la liste avant de poser une question : http://wiki.debian.org/fr/FrenchLists Pour vous

Re: Grep on dictionary words

2009-11-30 Thread Andrew Sackville-West
On Sun, Nov 29, 2009 at 11:14:58AM +0200, Dotan Cohen wrote: 2009/11/29 Andrew Sackville-West and...@farwestbilliards.com: On Sun, Nov 29, 2009 at 01:22:15AM +0200, Dotan Cohen wrote: will get the ones that start with capital alphas. if you want initial caps *only* then: grep ^[A-Z

Re: Grep on dictionary words

2009-11-30 Thread Mike Castle
On Sat, Nov 28, 2009 at 7:13 AM, Dotan Cohen dotanco...@gmail.com wrote: I have a long binary file (about 12 MB) that I need to extract the text from via strings. Naturally, there are a lot of junk lines such as these: pDuf #k0H}g) GoV5 rLeY1 TMlq,* Is there a way to grep the output

Re: Grep on dictionary words

2009-11-29 Thread Tzafrir Cohen
On Sun, Nov 29, 2009 at 01:22:15AM +0200, Dotan Cohen wrote: will get the ones that start with capital alphas. if you want initial caps *only* then: grep ^[A-Z][a-z]*$ would match those. Thanks. I meant that caps could only be at the beginning of a word, not in the middle

Re: Grep on dictionary words

2009-11-29 Thread Dotan Cohen
2009/11/29 Andrew Sackville-West and...@farwestbilliards.com: On Sun, Nov 29, 2009 at 01:22:15AM +0200, Dotan Cohen wrote: will get the ones that start with capital alphas. if you want initial caps *only* then: grep ^[A-Z][a-z]*$ would match those. Thanks. I meant that caps could

Re: Grep on dictionary words

2009-11-29 Thread Emanoil Kotsev
Dotan Cohen wrote: This means that only words that start with a caps are valid. I need can start with a caps, but caps can be nowhere else. I got that like this: grep ^[A-Za-z][a-z]*$ However I think that there is a better way. This is a good exercise. I am bettering my regex skills

Grep on dictionary words

2009-11-28 Thread Dotan Cohen
I have a long binary file (about 12 MB) that I need to extract the text from via strings. Naturally, there are a lot of junk lines such as these: pDuf #k0H}g) GoV5 rLeY1 TMlq,* Is there a way to grep the output of strings in order to only show lines that contain words found in the aspell

Re: Grep on dictionary words

2009-11-28 Thread Boyd Stephen Smith Jr.
In 880dece00911280713n6193b8das6970e8a071fc2...@mail.gmail.com, Dotan Cohen wrote: Is there a way to grep the output of strings in order to only show lines that contain words found in the aspell dictionary? Thanks in advance. I once wrote a small program against the aspell API to do something

Re: Grep on dictionary words

2009-11-28 Thread Andrew Sackville-West
On Sat, Nov 28, 2009 at 11:32:59AM -0600, Boyd Stephen Smith Jr. wrote: In 880dece00911280713n6193b8das6970e8a071fc2...@mail.gmail.com, Dotan Cohen wrote: Is there a way to grep the output of strings in order to only show lines that contain words found in the aspell dictionary? Thanks

Re: Grep on dictionary words

2009-11-28 Thread Dotan Cohen
ISTM that because the output of strings is not discrete list of potential words, but is instead a long list of concatenated characters, this problem is really rather daunting. The output should probably be first broken up into something resembling words by perhaps breaking on non-alphabetic

Re: Grep on dictionary words

2009-11-28 Thread Florian Kriener
On Saturday 28 November 2009 16:13:55 Dotan Cohen wrote: I have a long binary file (about 12 MB) that I need to extract the text from via strings. Naturally, there are a lot of junk lines such as these: pDuf #k0H}g) GoV5 rLeY1 TMlq,* Is there a way to grep the output of strings

Re: Grep on dictionary words

2009-11-28 Thread Andrew Sackville-West
and inserts a newline to make each a separate line. or leave out the '\n' to leave the line structure as it is. Then you can grep with something like: grep ^[A-Z] will get the ones that start with capital alphas. if you want initial caps *only* then: grep ^[A-Z][a-z]*$ would match those. I'm sure

Re: Grep on dictionary words

2009-11-28 Thread Dotan Cohen
will get the ones that start with capital alphas. if you want initial caps *only* then: grep ^[A-Z][a-z]*$ would match those. Thanks. I meant that caps could only be at the beginning of a word, not in the middle. Expanding your example, I figured that would be: grep ^[A-Z]?[a-z]*$ // note

Re: Grep on dictionary words

2009-11-28 Thread Andrew Sackville-West
On Sun, Nov 29, 2009 at 01:22:15AM +0200, Dotan Cohen wrote: will get the ones that start with capital alphas. if you want initial caps *only* then: grep ^[A-Z][a-z]*$ would match those. Thanks. I meant that caps could only be at the beginning of a word, not in the middle

Re: Grep on dictionary words

2009-11-28 Thread John Hasler
Dotan writes: Is there a way to grep the output of strings in order to only show lines that contain words found in the aspell dictionary? Try this: #!/bin/bash strings $1 | while read line do if [ ` echo $line | sed -e 's/[^a-zA-Z ]//g' | wc -m` -lt 6 ] then continue fi echo $line | sed -e

dpkg-query -W -f='${Conffiles}\n' | grep obsolete

2009-11-14 Thread bossekr
Hi, is it true that this call `dpkg-query -W -f='${Conffiles}\n' | grep obsolete` show all obsolate files which can be removed ? I read about this at http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot while upgrading sysv-rc for dependency booting. My script to detect obsolate files

Re: binary grep

2009-09-19 Thread Rob Gom
Hello, thanks for your suggestions. I'm afraid grep was designed as text-oriented tool. I'm not sure how it will handle CR and/or LF characters when matching pattern. IIRC grep has no multiline patterns, so it could basically fail. I guess it would suit 95% of my needs, I'm just trying

Re: binary grep

2009-09-19 Thread Nelson Castillo
On Sat, Sep 19, 2009 at 12:40 PM, Rob Gom rgom.deb...@gmail.com wrote: Hello, thanks for your suggestions. I'm afraid grep was designed as text-oriented tool. I'm not sure how it will handle CR and/or LF characters when matching pattern. IIRC grep has no multiline patterns, so it could

binary grep

2009-09-18 Thread Rob Gom
Hello, are you aware of a tool, which would allow me to search for given pattern in a binary file, then at least output file position (so that I could pass the number to dd) or output next few bytes? For text files I use e.g .grep (grep -A 3 file pattern to output 3 lines after match). I would

Re: binary grep

2009-09-18 Thread Jesús M. Navarro
Hi, Rob: On Friday 18 September 2009 16:55:37 Rob Gom wrote: Hello, are you aware of a tool, which would allow me to search for given pattern in a binary file, then at least output file position (so that I could pass the number to dd) or output next few bytes? For text files I use e.g .grep

Re: how do i grep boobies

2009-07-06 Thread Dotan Cohen
I like to offend midgets. Can we do that now? Just a few small jokes? I'd prefer if you do a Jew joke! I'll do my best not to get offended. Anybody else volunteer for humiliation? -- Dotan Cohen http://what-is-what.com http://gibberish.co.il -- To UNSUBSCRIBE, email to

Re: how do i grep boobies

2009-07-06 Thread Hal Vaughan
On Jul 6, 2009, at 2:30 AM, Dotan Cohen wrote: I like to offend midgets. Can we do that now? Just a few small jokes? I'd prefer if you do a Jew joke! I'll do my best not to get offended. Anybody else volunteer for humiliation? I'm a Trekkie. Unfortunately, I don't live in my Mother's

Re: how do i grep boobies

2009-07-06 Thread Cybe R. Wizard
On Mon, 6 Jul 2009 09:30:34 +0300 Dotan Cohen dotanco...@gmail.com wrote: I'd prefer if you do a Jew joke! I'll do my best not to get offended. Anybody else volunteer for humiliation? Little Jewish boy asks his father for thirty dollars. Dad says, Twenty dollars! Why do you need ten dollars?

Re: how do i grep boobies

2009-07-06 Thread Robert Holtzman
On Mon, 6 Jul 2009, Dotan Cohen wrote: I like to offend midgets. Can we do that now? Just a few small jokes? I'd prefer if you do a Jew joke! I'll do my best not to get offended. You might not but I might send Moishe the Shtarker to push a button on him. Thin skinned? Yup! -- Bob

Re: how do i grep boobies

2009-07-05 Thread Hal Vaughan
On Jul 5, 2009, at 1:50 AM, Rustam wrote: On Sun, 2009-07-05 at 00:33 +0300, Dotan Cohen wrote: ... [snip] ... haha :) well, i know some might think this thread is offended, some might just delete. the truth is this is OT. but despite that, let me post my first reply to this: It doesn't

Re: how do i grep boobies

2009-07-05 Thread Dotan Cohen
haha :D it doesn't work too. can we make linux more human ? Then it'd be called a Mac. Fanboy! Human is the Ubuntu colour/icon scheme! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of

Re: how do i grep boobies

2009-07-05 Thread Hal Vaughan
On Jul 5, 2009, at 2:32 AM, Dotan Cohen wrote: haha :D it doesn't work too. can we make linux more human ? Then it'd be called a Mac. Fanboy! Human is the Ubuntu colour/icon scheme! Fanboy! Ubuntu is Debian Sid Lite pretending to be some other OS and GUI. Hal -- To UNSUBSCRIBE,

Re: how do i grep boobies

2009-07-05 Thread Rustam
On Sun, 2009-07-05 at 02:37 -0400, Hal Vaughan wrote: On Jul 5, 2009, at 2:32 AM, Dotan Cohen wrote: haha :D it doesn't work too. can we make linux more human ? Then it'd be called a Mac. Fanboy! Human is the Ubuntu colour/icon scheme! i mean human as human being. not jargon nor

Re: how do i grep boobies

2009-07-05 Thread Cybe R. Wizard
On Sun, 5 Jul 2009 02:37:32 -0400 Hal Vaughan h...@halblog.com wrote: Ubuntu is Debian Sid Lite pretending to be some other OS and GUI. Hal Debian Sid is using upstart now? What, only an option? Which is lite again? Cybe R. Wizard -- There is absolutely no substitute for a complete

Re: how do i grep boobies

2009-07-05 Thread Harry Rickards
On 5 Jul 2009, at 09:32, Cybe R. Wizard cybe_r_wiz...@earthlink.net wrote: On Sun, 5 Jul 2009 02:37:32 -0400 Hal Vaughan h...@halblog.com wrote: Ubuntu is Debian Sid Lite pretending to be some other OS and GUI. Hal Debian Sid is using upstart now? What, only an option? Which is lite

Re: how do i grep boobies

2009-07-05 Thread Michael McGlothlin
Tyler please contact me regarding Yi support. Thanks, Michael McGlothlin On Jul 4, 2009, at 3:20 PM, Tyler MacDonald ty...@yi.org wrote: Lisi Reisz lisi.re...@gmail.com wrote: ...unless there might still be some women somewhere on Usenet. alias woman locate; talk; date; uptime; gawk; head;

Re: how do i grep boobies

2009-07-05 Thread Dotan Cohen
Fanboy! Human is the Ubuntu colour/icon scheme! Fanboy!  Ubuntu is Debian Sid Lite pretending to be some other OS and GUI. Whosh! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with

Re: how do i grep boobies

2009-07-05 Thread Raquel
On Sun, 5 Jul 2009 11:00:31 +0100 Harry Rickards hricka...@l33tmyst.com wrote: Also, regarding the women wanting this thread to stop being offensive to them, it's probably only encouraged some people. Why not create a thread that offends/embarrases all the guys on the list? I wonder how long

Re: how do i grep boobies

2009-07-05 Thread Napoleon
Raquel wrote: On Sun, 5 Jul 2009 11:00:31 +0100 Harry Rickards hricka...@l33tmyst.com wrote: Also, regarding the women wanting this thread to stop being offensive to them, it's probably only encouraged some people. Why not create a thread that offends/embarrases all the guys on the list? I

Re: how do i grep boobies

2009-07-05 Thread Robert Baron
And all of this for a fanatical bird watcher. The correct command is curl http://www.geo.cornell.edu/geology/GalapagosWWW/BlueFoot.html; | grep boobies % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total Spent

Re: how do i grep boobies

2009-07-05 Thread Robert Baron
And all of this for a fanatical bird watcher. I will help you with the correct command. It is: curl http://www.geo.cornell.edu/geology/GalapagosWWW/BlueFoot.html; | grep boobies which returns: % Total% Received % Xferd Average Speed TimeTime Time Current

Re: how do i grep boobies

2009-07-05 Thread Dotan Cohen
It's too bad that some people are so thin-skinned that a word like boobies upsets them.  It's not like we're talking about raping someone, for instance. Now I'm really offended. The thread stops here. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il -- To UNSUBSCRIBE, email

Re: how do i grep boobies

2009-07-05 Thread Dotan Cohen
And all of this for a fanatical bird watcher.  The correct command is You cannot be serious! Any fanatical bid watcher would naturally prefer to see Great Tits: http://en.wikipedia.org/wiki/Great_tits -- Dotan Cohen http://what-is-what.com http://gibberish.co.il -- To UNSUBSCRIBE, email to

Re: how do i grep boobies

2009-07-05 Thread Hal Vaughan
On Jul 5, 2009, at 1:55 PM, Dotan Cohen wrote: It's too bad that some people are so thin-skinned that a word like boobies upsets them. It's not like we're talking about raping someone, for instance. Now I'm really offended. The thread stops here. And now we know the thread will go on

Re: how do i grep boobies

2009-07-05 Thread Michael McGlothlin
I like to offend midgets. Can we do that now? Just a few small jokes? Thanks, Michael McGlothlin On Jul 5, 2009, at 5:45 AM, Raquel raq...@thericehouse.net wrote: On Sun, 5 Jul 2009 11:00:31 +0100 Harry Rickards hricka...@l33tmyst.com wrote: Also, regarding the women wanting this thread to

Re: how do i grep boobies

2009-07-04 Thread Chris Bannister
On Sun, Jun 28, 2009 at 08:47:09AM -0500, Nate Bargmann wrote: * Comcast Master Account elizabethmusb...@comcast.net [2009 Jun 27 15:05 -0500]: hi i want boobies so i try grep some boobies but command not work how i get boobies thx I guess that if you can't grep any boobies

Re: how do i grep boobies

2009-07-04 Thread Cybe R. Wizard
On Sat, 4 Jul 2009 21:44:51 +1200 Chris Bannister mockingb...@earthlight.co.nz wrote: On Sun, Jun 28, 2009 at 08:47:09AM -0500, Nate Bargmann wrote: * Comcast Master Account elizabethmusb...@comcast.net [2009 Jun 27 15:05 -0500]: hi i want boobies so i try grep some boobies but command

Re: how do i grep boobies

2009-07-04 Thread Dotan Cohen
$ sudo apt-get install woman Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package woman $ Oh, oh.  Out of luck, I'd guess. ...unless there might still be some women somewhere on Usenet. alias woman locate; talk; date;

Re: how do i grep boobies

2009-07-04 Thread Lisi Reisz
On Saturday 04 July 2009 20:33:14 Dotan Cohen wrote: $ sudo apt-get install woman Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package woman $ Oh, oh.  Out of luck, I'd guess. ...unless there might still be some women

Re: how do i grep boobies

2009-07-04 Thread Tyler MacDonald
Lisi Reisz lisi.re...@gmail.com wrote: ...unless there might still be some women somewhere on Usenet. alias woman locate; talk; date; uptime; gawk; head; clean; sleep And then they wonder why some women find IT a hostile area Seriously, there are female readers of this list.

Re: how do i grep boobies

2009-07-04 Thread Hal Vaughan
boobies so i try grep some boobies but command not work how i get boobies thx I guess that if you can't grep any boobies, then the following commands will be difficult to invoke: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep $ man woman No manual

Re: how do i grep boobies

2009-07-04 Thread Dotan Cohen
...unless there might still be some women somewhere on Usenet. alias woman locate; talk; date; uptime; gawk; head; clean; sleep And then they wonder why some women find IT a hostile area Seriously, there are female readers of this list.  Could we at least pretend that the rest of

Re: how do i grep boobies

2009-07-04 Thread JoeHill
Tyler MacDonald wrote: Lisi Reisz lisi.re...@gmail.com wrote: ...unless there might still be some women somewhere on Usenet. alias woman locate; talk; date; uptime; gawk; head; clean; sleep And then they wonder why some women find IT a hostile area Seriously, there

Re: how do i grep boobies

2009-07-04 Thread Wayne Topa
Tyler MacDonald wrote: Lisi Reisz lisi.re...@gmail.com wrote: ...unless there might still be some women somewhere on Usenet. alias woman locate; talk; date; uptime; gawk; head; clean; sleep And then they wonder why some women find IT a hostile area Seriously, there are female readers of

Re: how do i grep boobies

2009-07-04 Thread Dotan Cohen
I don't think she cares if _you're_ offended or not, she's asking nicely if you'll stop because it does bother some people. Your feelings on the issue are totally irrelevant, since you have no experience being constantly treated like an object of someone's infantile desires, in the media, in

Re: how do i grep boobies

2009-07-04 Thread Hal Vaughan
On Jul 4, 2009, at 5:07 PM, Lisi Reisz wrote: On Saturday 04 July 2009 20:33:14 Dotan Cohen wrote: $ sudo apt-get install woman Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package woman $ Oh, oh. Out of luck, I'd guess.

Re: how do i grep boobies

2009-07-04 Thread Nate Bargmann
* Lisi Reisz lisi.re...@gmail.com [2009 Jul 04 16:10 -0500]: On Saturday 04 July 2009 20:33:14 Dotan Cohen wrote: $ sudo apt-get install woman Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package woman $ Oh, oh.  

Re: how do i grep boobies

2009-07-04 Thread Hal Vaughan
On Jul 4, 2009, at 8:43 PM, Nate Bargmann wrote: * Lisi Reisz lisi.re...@gmail.com [2009 Jul 04 16:10 -0500]: On Saturday 04 July 2009 20:33:14 Dotan Cohen wrote: $ sudo apt-get install woman Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't

Re: how do i grep boobies

2009-07-04 Thread Chris Jones
On Sat, Jul 04, 2009 at 09:21:58PM EDT, Hal Vaughan wrote: Streisand effect, especially known to be prevalent on Debian-User. Or, as Hal's Law states: The surest way to make sure a thread continues ad nauseam on Debian-User is to give even the slightest suggestion it may be off-topic.

Re: how do i grep boobies

2009-07-04 Thread Robert Mills
That's how I interpreted all of this, nor did I feel any of the people here were objectifying women (or even geeks, though they were the target of the humour). It did lead to an interesting debate I've recently finished about how individuals often read into such statements false intentionality

Re: how do i grep boobies

2009-07-04 Thread Rustam
On Sun, 2009-07-05 at 00:33 +0300, Dotan Cohen wrote: ... [snip] ... haha :) well, i know some might think this thread is offended, some might just delete. the truth is this is OT. but despite that, let me post my first reply to this: It doesn't work that way, I've been trying for ages!

Re: how to grep error messages

2009-06-29 Thread Boyd Stephen Smith Jr.
In 20090628094255.ga12...@freenet.de, Michelle Konzack wrote: Am 2009-06-28 11:39:55, schrieb Soren Orel: I can /dev/null the error messages like: cd $1 2 /dev/null e.g.: I get error If $1 has spaces in it Ok, but how can I grep the error message? I tried: if cd $1 2 grep -i No such file

Re: how to grep error messages

2009-06-29 Thread Boyd Stephen Smith Jr.
In 20090628141815.gm2...@pear.tzafrir.org.il, Tzafrir Cohen wrote: On Sun, Jun 28, 2009 at 11:42:58AM +0200, Michelle Konzack wrote: But I would prefer something like: if [ $(cd $1) -ne 0 ] then echo badbadbad ; exit 1 fi Note that this runs the 'cd' command in a

how to grep error messages

2009-06-28 Thread Soren Orel
I can /dev/null the error messages like: cd $1 2 /dev/null e.g.: I get error If $1 has spaces in it Ok, but how can I grep the error message? I tried: if cd $1 2 grep -i No such file or directory; then echo badbadbad; exit; fi But it doesn't work :S thank you!

Re: how to grep error messages

2009-06-28 Thread Michelle Konzack
Am 2009-06-28 11:39:55, schrieb Soren Orel: I can /dev/null the error messages like: cd $1 2 /dev/null e.g.: I get error If $1 has spaces in it Ok, but how can I grep the error message? I tried: if cd $1 2 grep -i No such file or directory; then echo badbadbad; exit; fi

Re: how to grep error messages

2009-06-28 Thread me
Hi, how about: cd $1 if [ $? != '0' ]; then echo damn. exit; fi greetings, vitaminx 2009/6/28 Soren Orel soren.o...@gmail.com I can /dev/null the error messages like: cd $1 2 /dev/null e.g.: I get error If $1 has spaces in it Ok, but how can I grep the error message? I tried

Re: how to grep error messages

2009-06-28 Thread me
error If $1 has spaces in it Ok, but how can I grep the error message? I tried: if cd $1 2 grep -i No such file or directory; then echo badbadbad; exit; fi But it doesn't work :S thank you! -- www ... http://www.callistix.net/ mail ... vitam...@callistix.net irc ... #chezpaeule

Re: how to grep error messages

2009-06-28 Thread Michelle Konzack
Am 2009-06-28 11:48:54, schrieb me: hehe, answered at the same time :D =8O Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 25.9V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter,

Re: how do i grep boobies

2009-06-28 Thread Dotan Cohen
Even so, I still have to say Get a grep on yourself.  :) That was really awkward but I guess it had to be sed. thatwasbad! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble

Re: how to grep error messages

2009-06-28 Thread Soren Orel
, but how can I grep the error message? I tried: if cd $1 2 grep -i No such file or directory; then echo badbadbad; exit; fi But it doesn't work :S thank you!

Re: how do i grep boobies

2009-06-28 Thread Nate Bargmann
* Comcast Master Account elizabethmusb...@comcast.net [2009 Jun 27 15:05 -0500]: hi i want boobies so i try grep some boobies but command not work how i get boobies thx I guess that if you can't grep any boobies, then the following commands will be difficult to invoke: unzip, strip, touch

Re: how to grep error messages

2009-06-28 Thread Tzafrir Cohen
On Sun, Jun 28, 2009 at 11:42:58AM +0200, Michelle Konzack wrote: But I would prefer something like: if [ $(cd $1) -ne 0 ] then echo badbadbad ; exit 1 fi Note that this runs the 'cd' command in a subdirectory, and thus it has no effect on the parent process. And then

Re: how to grep error messages

2009-06-28 Thread Osamu Aoki
Hi, On Sun, Jun 28, 2009 at 11:39:55AM +0200, Soren Orel wrote: I can /dev/null the error messages like: cd $1 2 /dev/null 2 will redirect to a file /dev/null e.g.: I get error If $1 has spaces in it Ok, but how can I grep the error message? I tried: if cd $1 2 grep -i No such file

Re: how to grep error messages

2009-06-28 Thread Soren Orel
final solution: if ! cd $1; then echo error; exit 1; fi thank you!

how do i grep boobies

2009-06-27 Thread Comcast Master Account
hi i want boobies so i try grep some boobies but command not work how i get boobies thx -- Best Regards, John Musbach -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: how do i grep boobies

2009-06-27 Thread Chris
On Sat, 27 Jun 2009 16:01:35 -0400 Comcast Master Account elizabethmusb...@comcast.net wrote: hi i want boobies so i try grep some boobies but command not work how i get boobies thx Ahhh... to be young and stupid once again. Wonder if Mom Liz would find this funny. -- Best regards, Chris

Re: how do i grep boobies

2009-06-27 Thread John Musbach
I apologize, I had a virus on my computer and it was doing all kinds of weird stuff. Sorry! On Sat, Jun 27, 2009 at 4:01 PM, Comcast Master Accountelizabethmusb...@comcast.net wrote: hi i want boobies so i try grep some boobies but command not work how i get boobies thx -- Best Regards

Re: how do i grep boobies

2009-06-27 Thread Chris
grep some boobies but command not work how i get boobies thx -- Best Regards, John Musbach This might be a good time to consider Linux?! -- Best regards, Chris () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments

Re: how do i grep boobies

2009-06-27 Thread Scarletdown
On Sat, Jun 27, 2009 at 1:34 PM, John Musbach johnmusba...@gmail.comwrote: I apologize, I had a virus on my computer and it was doing all kinds of weird stuff. Sorry! On Sat, Jun 27, 2009 at 4:01 PM, Comcast Master Accountelizabethmusb...@comcast.net wrote: hi i want boobies so i try grep

Re: how do i grep boobies

2009-06-27 Thread Brad Rogers
On Sat, 27 Jun 2009 13:53:26 -0700 Scarletdown scarletd...@gmail.com wrote: Hello Scarletdown, Even so, I still have to say Get a grep on yourself. :) But the money's no good. :-) -- Regards _ / ) The blindingly obvious is / _)radnever immediately

Re: how do i grep boobies

2009-06-27 Thread Cybe R. Wizard
Master Accountelizabethmusb...@comcast.net wrote: hi i want boobies so i try grep some boobies but command not work how i get boobies thx Even so, I still have to say Get a grep on yourself. :) That was really awkward but I guess it had to be sed. Cybe R. Wizard -- gawk; talk; nice

Re: how do i grep boobies

2009-06-27 Thread mitch
This might be a good time to consider Linux?! It's made my boobie grepping better! Linux that is... -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: how do i grep boobies

2009-06-27 Thread Chris
and it was doing all kinds of weird stuff. Sorry! On Sat, Jun 27, 2009 at 4:01 PM, Comcast Master Accountelizabethmusb...@comcast.net wrote: hi i want boobies so i try grep some boobies but command not work how i get boobies thx Even so, I still have to say Get a grep

Re: how do i grep boobies

2009-06-27 Thread Hal Vaughan
...@comcast.net wrote: hi i want boobies so i try grep some boobies but command not work how i get boobies thx Even so, I still have to say Get a grep on yourself. :) Is a text processing tool really the most appropriate tool for this job? Hal -- To UNSUBSCRIBE, email to debian-user-requ

Re: how do i grep boobies

2009-06-27 Thread Damon Chesser
...@gmail.comwrote: I apologize, I had a virus on my computer and it was doing all kinds of weird stuff. Sorry! On Sat, Jun 27, 2009 at 4:01 PM, Comcast Master Accountelizabethmusb...@comcast.net wrote: hi i want boobies so i try grep some boobies but command not work how i get

Re: how do i grep boobies

2009-06-27 Thread Kent West
Accountelizabethmusb...@comcast.net wrote: hi i want boobies so i try grep some boobies but command not work how i get boobies thx Even so, I still have to say Get a grep on yourself. :) Is a text processing tool really the most appropriate tool for this job? I dunno, but this conversation

squeeze grep is broken

2009-06-06 Thread Jude DaShiell
I tried a command line like: grep -in print-installation-architecture * | less cr and got me a surprise. I was in /var/lib/dpkg/info when I did this and was curious to know what other scripts might have that deprecated command in them. Grep responded with an undocumented error of argument

squeeze the whole grep suite is broken

2009-06-06 Thread Jude DaShiell
rgrep throws the same argument list too long error as did grep. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

squeeze grep status

2009-06-06 Thread Jude DaShiell
Apparently argument list too long is an operating system error. I made it happen with ed too. I can divide and conquer though by limiting argument lists with regular expressions in this case. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe.

Re: squeeze grep is broken

2009-06-06 Thread David Fox
On Sat, Jun 6, 2009 at 8:57 AM, Jude DaShielljdash...@shellworld.net wrote: I tried a command line like: grep -in print-installation-architecture * | less cr and got me a surprise.  I was in /var/lib/dpkg/info when I did I don't think this is a bug at all. When you do the command, the shell

Re: squeeze grep status

2009-06-06 Thread David Fox
On Sat, Jun 6, 2009 at 9:32 AM, Jude DaShielljdash...@shellworld.net wrote: Apparently argument list too long is an operating system error.  I made it happen with ed too.  I can divide and conquer though by limiting argument lists with regular expressions in this case. That's always an option,

Re: squeeze the whole grep suite is broken

2009-06-06 Thread Florian Kulzer
On Sat, Jun 06, 2009 at 12:01:35 -0400, Jude DaShiell wrote: rgrep throws the same argument list too long error as did grep. http://www.linuxjournal.com/article/6060 -- Regards,| http://users.icfo.es/Florian.Kulzer Florian | -- To UNSUBSCRIBE, email to debian-user

Re: squeeze grep is broken

2009-06-06 Thread Osamu Aoki
On Sat, Jun 06, 2009 at 11:57:56AM -0400, Jude DaShiell wrote: I tried a command line like: grep -in print-installation-architecture * | less cr and got me a surprise. I was in /var/lib/dpkg/info when I did this and was curious to know what other scripts might have that deprecated command

Re: squeeze the whole grep suite is broken

2009-06-06 Thread Osamu Aoki
Interesting! I was one with wrong idea for the root cause. On Sat, Jun 06, 2009 at 07:49:18PM +0200, Florian Kulzer wrote: On Sat, Jun 06, 2009 at 12:01:35 -0400, Jude DaShiell wrote: rgrep throws the same argument list too long error as did grep. http://www.linuxjournal.com/article/6060

Re: squeeze grep status

2009-06-06 Thread Girish Kulkarni
On Sat, 6 Jun 2009, Jude DaShiell wrote: Apparently argument list too long is an operating system error. I made it happen with ed too. I can divide and conquer though by limiting argument lists with regular expressions in this case. Does `find . -name REGEXP -exec COMMAND` help? See man

Re: Hacer un grep de más de una palabra por archivo

2009-05-08 Thread fernando sainz
comando pueda obtener las líneas en las que están cualquiera de las dos palabras: casa o Pedro. Como salida, tendría que obtener:   la casa se encuentra en el campo Pedro está ahí egrep Pedro\|casa texto Creo que en el man de grep viene una opción -e que es la que andas buscando grep -e kk

Re: Hacer un grep de más de una palabra por archivo

2009-05-08 Thread Hector Colina
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 fernando sainz escribió: El día 7 de mayo de 2009 19:41, Roberto Alsina rals...@netmanagers.com.ar escribió: Néstor Flores writes: Creo que en el man de grep viene una opción -e que es la que andas buscando grep -e kk -e lll fichero.txt

Re: Hacer un grep de más de una palabra por archivo

2009-05-08 Thread Ricardo Albarracin B.
El Thu, 07 May 2009 14:41:33 -0300 Roberto Alsina rals...@netmanagers.com.ar escribió: Néstor Flores writes: Supónganse que tengo el archivo texto. Que tiene lo siguiente:   la casa se encuentra en el campo el campo esta en Paraná Pedro está ahí Santa Fe está lejos

Re: Hacer un grep de más de una palabra por archivo

2009-05-07 Thread Roberto Alsina
Néstor Flores writes: Supónganse que tengo el archivo texto. Que tiene lo siguiente:   la casa se encuentra en el campo el campo esta en Paraná Pedro está ahí Santa Fe está lejos   Bueno, quiero que con un comando pueda obtener las líneas en las que están cualquiera de las dos palabras:

grep (was Re: thunderbird and evolution)

2009-03-29 Thread Ron Johnson
On 2009-03-29 02:54, Celejar wrote: On Sun, 29 Mar 2009 00:49:55 -0500 Ron Johnson ron.l.john...@cox.net wrote: ... $ cat .muttrc | grep imap Superfluous use of cat. $ grep .muttrc imap $ grep .muttrc imap grep: imap: No such file or directory $ grep imap .muttrc set imap_user=me set

recursive grep and openoffice

2009-03-18 Thread John O Laoi
Thanks for all of your replies. I didn't know that tools such as tracker would search with openoffice document. With respect to the command line, I have fixed on find . -name *.odt -exec sh -c 'unzip -c {} content.xml | grep string-being sought /dev/null' \; -print but it returns immediately

Re: recursive grep and openoffice

2009-03-18 Thread Rainer Kluge
John O Laoi schrieb: find . -name *.odt -exec sh -c 'unzip -c {} content.xml | grep string-being sought /dev/null' \; -print For me it works . Maybe you should quote *.odt: '*.odt'. And try just find . -name *.odt to see if the odt files are found. Rainer -- To UNSUBSCRIBE, email

Re: recursive grep and openoffice

2009-03-18 Thread Boyd Stephen Smith Jr.
{} content.xml | grep string-being sought /dev/null' \; -print I think I'd rewrite it as: find . \ -name '*.odt' \ -exec sh -c 'unzip -c $1 content.xml | grep -q regex' \{} \; \ -print I'm not sure what the rules are for find substituting {} within another argument, so it seems best to write

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