Filename conversion
William Park
opengeometry-FFYn/CNdgSA at public.gmane.org
Sun Apr 11 18:29:18 UTC 2004
On Sun, Apr 11, 2004 at 07:47:29AM -0400, John Wildberger wrote:
> I imported from an XP OS a number of files into Linux. These files have names
> like "Set1 001.png" with a space beteen the Set1 and 001.png. These are
> picture files and can be displayed by by GIMP without a hitch inspite of the
> space char.
> However, anything else I want to do with these files fails due to the presence
> of the space. Any individual file can be renamed without problems, thereby
> eliminating the space char. However, this is quite cumbersome if there are a
> great number of files.
> Question: Is there an efficient way (perl ??) to deal with this for all such
> files in a particular directory?
Exactly what do you want to do?
- If you want to specify spaces, then play with
ls Set1?001.png
ls Set1\ 001.png
ls "Set1 001.png"
ls 'Set1 001.png'
- If you want to rename them, then play with
mv 'Set1 001.png' Set1_001.png
or use other printable character in place of space.
--
William Park, Open Geometry Consulting, <opengeometry-FFYn/CNdgSA at public.gmane.org>
Linux solution/training/migration, Thin-client
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list