[olug] Nesting commands at command line

Brian Roberson roberson at olug.org
Tue Aug 5 04:52:26 UTC 2003


or without even a pipe...

find /path/to/places -name bad_file -exec rm -f {} \;

 
----- Original Message ----- 
From: "Mac Petras" <Mac at PetrasWeb.com>
To: <olug at olug.org>
Sent: Monday, August 04, 2003 9:27 AM
Subject: Re: [olug] Nesting commands at command line


> 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
> 
> 
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
> 


More information about the OLUG mailing list