[colug-432] Question about grep and using " " in bash

Mike Plemmons mikeplemmons at gmail.com
Wed Apr 15 10:52:33 EDT 2015


I have not known it to be necessary.  Although, I like to be quotes around
the regex out of habit because if the regex needs to have spaces then the
quotes are necessary.

On Wed, Apr 15, 2015 at 9:51 AM, zach villers <zachvatwork at gmail.com> wrote:

> Is there a difference between;
>
> ls -l | grep ^...s
>
> AND
>
> ls -l | grep "^...s"
>
> *trying to find files with setuid permission*
>
> A trainer told me using quotes with the grep statement was necessary,
> but it doesn't seem to be.
>
> Thanks!
>
> _______________________________________________
> colug-432 mailing list
> colug-432 at colug.net
> http://lists.colug.net/mailman/listinfo/colug-432
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.colug.net/pipermail/colug-432/attachments/20150415/da808ed9/attachment.html 


More information about the colug-432 mailing list