[olug] Nesting commands at command line
Craig Wolf
CJWolf at mpsomaha.org
Tue Aug 5 17:37:44 UTC 2003
Everyone's suggestions were great and I have filed them away for further reference. I knew that this would be an easy one for this group, I just did not remember/unable to locate the answer. Thanx again!!
Craig Wolf
Linux Web Server Support
Backup Supervisor
Desktop/Network Specialist
402-894-6283
>>> roberson at olug.org 8/4/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
>
_______________________________________________
OLUG mailing list
OLUG at olug.org
http://lists.olug.org/mailman/listinfo/olug
More information about the OLUG
mailing list