See man pages of find command.
with find command you can find out files with a particular pattern and
then pass these file to another command (like rm) for further processing.
your's [EMAIL PROTECTED]


On Sat, 16 Dec 2000, Neeraj Manral wrote:

> Hello sirs ,
> Thanks a lot for all the earlier help!
> 
> Is there any commands in linux which shall remove all the files having a
> particular string in filename from all the folders in a particular directory
> .
> 
> suppose the filename has a string "XYZ!@#$%" common in all the folders .
> what command should i give to del all the files in various folders under dir
> xyz
> 
>                             Directory (xyz)
> 
> folder1                   folder 2                    folder 3
> XYZ!@#$%         XYZ!@#$%                XYZ!@#$%
> 
> I am not able to figure out how to use rm command with grep.
> 
> Thanks & Regards
> Neeraj
> 
> 
> ----------------------------------------------
> An alpha version of a web based tool to manage
> your subscription with this mailing list is at
> http://lists.linux-india.org/cgi-bin/mj_wwwusr
> 

-- 
Soumeyndu Shankar Mohapatra
          Jr. Mgr.(Systems)
Steel Authority Of India Ltd.
Rourkela Steel plant
Rourkela , Orissa - 769011
***************************
Email   :  [EMAIL PROTECTED]
           [EMAIL PROTECTED]
HomePage : www.geocities.com/mohapatras



----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr

Reply via email to