how to find spaces with a regex?

Trevor Smith trevor at haligonian.com
Thu Feb 19 15:11:29 UTC 2004


On February 18, 2004 11:28 pm, Trevor Smith wrote:

> can NOT figure out how to use a regex to search for multiple spaces -- for

Sorry, I figured it out.

   grep ' {1,}' filename

does not work

   grep ' \{1,\}' filename

does work. I was forgetting to escape the { and } characters.

-- 
 Trevor Smith    |    trevor at haligonian.com 





More information about the fedora-list mailing list