[lug] regular expression question

Jeff Schroeder jeff at zingstudios.com
Tue Dec 4 10:04:13 MST 2007


Kevin asked:

> Can anyone tell me specifically what the '/$' bit is in this grep
> stmt?
>
> ls -1tp | grep -v '/$' | head -1

It'll remove any line ending in a slash.  The "$" means "end of line".

HTH,
Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20071204/145780e7/attachment.pgp>


More information about the LUG mailing list