If your having problems you should try reinstalling the app<br><br><div class="gmail_quote">On Sat, Jun 7, 2008 at 2:51 PM, Chris Mohler <<a href="mailto:cr33dog@gmail.com">cr33dog@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sat, Jun 7, 2008 at 4:38 PM, dave selby <<a href="mailto:dave6502@googlemail.com">dave6502@googlemail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> My regex is hopeless ... I am trying to match<br>
><br>
> '0:00 motion'<br>
><br>
> and it just is not having it ...<br>
><br>
> echo '7882 pts/1    Sl+    0:00 motion' | grep -e<br>
> '[:digit;]:[:digit:][:digit:].motion$'<br>
><br>
> can anyone tell me where I am going wrong ?<br>
<br>
<br>
No expert, but how about this:<br>
echo '7882 pts/1    Sl+    0:00 motion' | grep -o "[0-9]:[0-9][0-9].motion$"<br>
<br>
<br>
-o tells grep to only output the matched portion...<br>
<br>
Chris<br>
<font color="#888888"><br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></blockquote></div><br>