[ale] using find

Bob's ALE Mail transam at cavu.com
Tue Aug 22 18:00:12 EDT 2000


> 	I want to search an entire file system and pipe the output to a
> file. This is waht I tried, doesn't redirect? anyone know why? Or have a
> better way to find a string. If you are wondering what this is I am trying
> to find out where the new Debian dist "potato" stores the IP address's for
> when it boots and sets up networking.

> find / -exec grep 216.151.155.78 {} \; >IPADDRESS

You need to escape the {} as they are used for combinatorial expansion.
(Do "echo {a,b}{1,2}" to see this.)  As another poster wrote you need to
escape the periods too.

Try

find / -exec grep '216\.151\.155\.78' '{}' \; > IPADDRESS

> also tried

> find / -exec grep 216.151.155.78 {} >IPADDRESS \;

Same problem plus likely bad syntax.  Had you escaped the ">" each grep
invocation would truncate the results of the previous invocation.

> Thanks
> Ken
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list