Re: Using sh library with grep command

2013-11-23 Thread Luca Fabbri
On Sat, Nov 23, 2013 at 5:29 PM, Peter Otten <__pete...@web.de> wrote: > Luca wrote: > >> I'm trying to use sh (https://pypi.python.org/pypi/sh) for calling >> system grep command but it's now working as expected. >> >> An example: >> >

Re: Using sh library with grep command

2013-11-23 Thread Peter Otten
Luca wrote: > I'm trying to use sh (https://pypi.python.org/pypi/sh) for calling > system grep command but it's now working as expected. > > An example: > > import sh > sh.grep('abc', os.getcwd(), '-r') > > But I get the ErrorRet

Re: Using sh library with grep command

2013-11-23 Thread Roy Smith
In article , Luca wrote: > I'm trying to use sh (https://pypi.python.org/pypi/sh) for calling > system grep command but it's now working as expected. > > An example: > > import sh > sh.grep('abc', os.getcwd(), '-r') > > But

Using sh library with grep command

2013-11-23 Thread Luca
I'm trying to use sh (https://pypi.python.org/pypi/sh) for calling system grep command but it's now working as expected. An example: import sh sh.grep('abc', os.getcwd(), '-r') But I get the ErrorReturnCode_1: exception, that I learned is the normal exit

Re: grep command

2010-06-10 Thread rantingrick
On Jun 10, 7:56 am, "D'Arcy J.M. Cain" wrote: > On Thu, 10 Jun 2010 08:26:58 +0100 > I'm surprised that there is anyone left who hasn't killfiled this guy. > He/she hasn't made any effort to understand the group.  Why bother even > answering him?  Just filter him and enjoy the silence. All this

Re: grep command

2010-06-10 Thread D'Arcy J.M. Cain
On Thu, 10 Jun 2010 08:26:58 +0100 Simon Brunning wrote: > On 10 June 2010 07:38, madhuri vio wrote: > > i was wondering bout the usage and syntax of > > grep command..can u tall me its syntax so that > > i can use it and proceed...pls > > That's really

Re: grep command

2010-06-10 Thread Simon Brunning
On 10 June 2010 07:38, madhuri vio wrote: > > i was wondering bout the usage and syntax of > grep command..can u tall me its syntax so that > i can use it and proceed...pls That's really not on topic for this list. -- Cheers, Simon B. -- http://mail.python.org/mailman/listinfo/python-list

grep command

2010-06-09 Thread madhuri vio
i was wondering bout the usage and syntax of grep command..can u tall me its syntax so that i can use it and proceed...pls -- madhuri :) -- http://mail.python.org/mailman/listinfo/python-list

Re: issue with grep command

2009-09-03 Thread Rhodri James
On Thu, 03 Sep 2009 19:51:20 +0100, Jul wrote: in tcsh terminal i have the following line of code cat fileName.txt | grep "a" which extracts all the instances of "a" from the file in the terminal.. however when i am trying to create a txt while, i am unable to do so for some reason..this is

Re: issue with grep command

2009-09-03 Thread Albert Hopkins
On Thu, 2009-09-03 at 11:51 -0700, Jul wrote: [Stuff about tcsh and grep deleted] What on earth does this have to do with Python? -a -- http://mail.python.org/mailman/listinfo/python-list

issue with grep command

2009-09-03 Thread Jul
in tcsh terminal i have the following line of code cat fileName.txt | grep "a" which extracts all the instances of "a" from the file in the terminal.. however when i am trying to create a txt while, i am unable to do so for some reason..this is the syntaxt i am using -- cat fileName.txt | frep