Regex probs ...

Brendan Strunk geek947 at gmail.com
Sat Jun 7 22:00:33 UTC 2008


try reinstalling app

On Sat, Jun 7, 2008 at 2:59 PM, Brendan Strunk <geek947 at gmail.com> wrote:

> If your having problems you should try reinstalling the app
>
>
> On Sat, Jun 7, 2008 at 2:51 PM, Chris Mohler <cr33dog at gmail.com> wrote:
>
>> On Sat, Jun 7, 2008 at 4:38 PM, dave selby <dave6502 at googlemail.com>
>> wrote:
>> > Hi All,
>> >
>> > My regex is hopeless ... I am trying to match
>> >
>> > '0:00 motion'
>> >
>> > and it just is not having it ...
>> >
>> > echo '7882 pts/1    Sl+    0:00 motion' | grep -e
>> > '[:digit;]:[:digit:][:digit:].motion$'
>> >
>> > can anyone tell me where I am going wrong ?
>>
>>
>> No expert, but how about this:
>> echo '7882 pts/1    Sl+    0:00 motion' | grep -o
>> "[0-9]:[0-9][0-9].motion$"
>>
>>
>> -o tells grep to only output the matched portion...
>>
>> Chris
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080607/db790141/attachment.html>


More information about the ubuntu-users mailing list