![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script to rename files | cpreovol | Shell Programming and Scripting | 3 | 04-01-2008 08:45 AM |
| rename a lot of files again | ajp7701 | Shell Programming and Scripting | 11 | 03-31-2008 04:36 PM |
| Script to rename files | Dinkster | UNIX for Dummies Questions & Answers | 5 | 01-22-2008 04:55 AM |
| script to rename files with current date and copy it. | logic0 | UNIX for Dummies Questions & Answers | 6 | 05-01-2007 02:13 AM |
| How to rename files? | CompuTelSystem | UNIX for Dummies Questions & Answers | 9 | 05-14-2002 12:28 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi All !!!
Is there any solution to get rid of / " * in old files names WITH A SCRIPT (About 100 Gb of old files) I know it can be done i just dont know how ! Hope that some one can help Best R. Yovel |
| Forum Sponsor | ||
|
|
|
||||
|
Read this link first: Removing "Strange" files
You could try something like what they suggest, like this: find . -name '*[^][a-zA-Z0-9#%~:,._+-]*' -print0 | xargs -0 rm It'll find all files with those special characters and the print them, and the xargs command will remove them all. You probably want to try something like this without the xargs part first and just view the list of files to make sure you're not gonna delete anything you didn't want to! You could also just backslash the special characters so they lose their special meaning, like: ls | grep "filewith\"quotes" |
||||
| Google UNIX.COM |