[olug] Nesting commands at command line

Mac Petras Mac at PetrasWeb.com
Mon Aug 4 15:27:43 UTC 2003


How about the following?

        find /var/html -name bad_file | xargs -replace rm



Craig Wolf said:
> I am not finding the answer at google probably because I am
> not searching on the right terms.  I need to pipe a
> multiline output as the input to another command and I can't
> remember/find the answer to do it. I need to find a file in
> all locations: find /var/www -name bad_file I then need to
> remove those files.
>
> Any and all help appreciated!
>
>
> Craig Wolf
> Linux Web Server Support
> Backup Supervisor
> Desktop/Network Specialist
> 402-894-6283
>
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug


_________________________________________
Mac Petras
Mac at PetrasWeb.com




More information about the OLUG mailing list