[X4U] Finder Question

Ed Gould edgould1948 at comcast.net
Sat Nov 22 13:46:25 PST 2008


>
>
> In Terminal, go to the folder that is the parent of the 100 folders  
> and do
> ls */Z*
> and it will give you the information you want.
>
> To recover, make a new folder (called zeds if you're not already  
> using that) either in the Finder or by
> mkdir zeds
>
> then move the files
> mv */Z* zeds
> and, as 'zeds' is a folder, all will be moved in there. Do all the  
> above while in the parent of the 100 folders.
>
> In the above 'mv' command, the shell expands the wildcard list to  
> what the 'ls' showed you, so the 'mv' program sees (reduced to a 3  
> file problem)
> mv FolderA/Zabc FolderB/Zdef FolderC/Zghi zeds
> The only gotcha with 'mv' is that if the last argument is a file  
> and not a folder it would move FolderA/Zabc to that last name  
> (replacing any original file), then move FolderB/Zdef to it, and  
> finally FolderC/Zghi. You would then have lost FolderA/Zabc FolderB/ 
> Zdef and have  FolderC/Zghi renamed. So be sure 'zeds' is a folder.
>
> David
>
>
David:

It is a good suggestion and would probably not work as the "Z" pics  
that were moved in error amount to about 100. The folders also  
contain about 1081 (currently) other pics that contain a "Z" in the  
beginning and those are in the correct folder. Even if I further  
qualify the "Z" search arg the number of pics go down but I would  
still come up with quite a few pics that would not be in error.

Thanks for the solution but I was needing a more optimal solution.

Ed
  


More information about the X4U mailing list