![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A Batch job to delete files from various directories | guruparan18 | Shell Programming and Scripting | 3 | 05-10-2008 01:31 PM |
| need to find last character in each line in all files | dbsurf | Shell Programming and Scripting | 7 | 01-24-2008 06:35 AM |
| Find files including subdirectory and Delete | thepurple | Shell Programming and Scripting | 1 | 10-04-2007 03:57 AM |
| Find files which contain a null character | Bab00shka | UNIX for Dummies Questions & Answers | 5 | 12-16-2005 07:41 AM |
| Schedule a Batch file to delete files at particular intervals | Indom | Windows & DOS: Issues & Discussions | 6 | 02-04-2004 09:57 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
batch delete using find, files with # character
UPDATE: Sorry, disregard this.
It did work, I made a mistake; I just shouldn't have been using maxdepth. I do think it is good to know, however, that find | grep '#' | xargs rm will "clean up" funnily named files in a directory. Of course, some of those funnily named files are there for a reason so use with care... ************************ I want to delete files containing #. find -maxdepth 1 | grep '#' gives me the files I want to delete, but when I try piping this into xargs with find -maxdepth 1 | grep '#' | xargs rm I get rm: missing operand. Is there some way I can get batched delete of files with special chars? Thanks! Last edited by tphyahoo; 05-30-2006 at 09:11 AM. |
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|