|
|
#1 |
|
Prospect
Join Date: Sep 2002
Posts: 3
|
Replace string in item names including subdirectories?
I was wondering if anyone knew of a way to replace a certain string of text in the item names of every item in a directory, including subdirectories. This would include the name of the directories and subdirectories themselves. Apple has an applescript that does this for items in a single directory (no subdirectories) and they had one that worked in OS9 with subdirectores. (The OS9 one doesn't work in X. It makes a list of the paths of all item's in the directory, and once it changes the name of a subdirectory, it can't locate the files witin it.)
So anyway... I was wondering if anyone knew of a command line app built into OSX that could accomplish this task, or could create an applescript to the same effect. Any help is appreciated. Thanks, Brandon |
|
|
|
|
|
#2 |
|
Prospect
Join Date: Jan 2003
Location: estonia
Posts: 5
|
Sorry I don't remember the
exact syntax, but this can easily be accomplished with a tcsh foreach lopp, grep and mv I think. Check "man tcsh" or "man foreach" |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|