[lug] regular expression question

Jarrar Jaffari jarrar.jaffari at gmail.com
Tue Dec 4 10:33:13 MST 2007


As 'ls -1tp' (due to -p) would print one of the '/=@| ' at the end of each
file (ref man ls) and in grep -v '/$' means ignore '/' at the end of the
line, essentially what it is doing is listing the first file without / at
the end.

HTH,
Jarrar
On Dec 4, 2007 9:31 AM, Kevin Kempter <kevin at kevinkempterllc.com> wrote:

> Can anyone tell me specifically what the '/$' bit is in this grep stmt?
>
> ls -1tp | grep -v '/$' | head -1
>
>
> Thanks in advance...
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
>



-- 

Imamiya Education Society

460266 South Birch Street
Glendale, CO 80246
U.S.A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20071204/dc4c6f0e/attachment.html>


More information about the LUG mailing list