9

Understanding -regex with GNU find

view full story
linux-howto

http://unix.stackexchange.com – Background I have what I think should be a simple case. I want to find all files with "cisco" in the name and do something with those files (via xargs). Finding files with ls Before I use xargs, the first step is listing all relevant files. Listing files is easy with ls | grep cisco... [mpenning@Bucksnort post]$ ls | grep cisco cisco-asa-double-nat.rst cisco-asa-packet-capture.rst cisco-eem-tcl.rst cisco-ip-sla-tracking.rst cisco_autonomous_to_lwap.rst [mpenning@Bucksnort post]$ Finding files with find Although it's probably not required in this specific case, find is generally consid (HowTos)