[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Info-mtools] something like mkmanifest for long names?
From: |
Onno Benschop |
Subject: |
Re: [Info-mtools] something like mkmanifest for long names? |
Date: |
Wed, 01 Apr 2009 06:41:00 +0800 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090318) |
On 31/03/09 19:40, Paul Fox wrote:
> i was especially pleased when i remembered that bash supports
> pattern replacement on variables. this seems to work, so far:
>
> renamepat='[\" \*:<>?\\|]'
> newname=${oldname//$renamepat/_}
>
Ooh, sexy!
Thanks!
--
Onno Benschop
Connected via Bigpond NextG at S31°54'06" - E115°50'39" (Yokine, WA)
--
()/)/)() ..ASCII for Onno..
|>>? ..EBCDIC for Onno..
--- -. -. --- ..Morse for Onno..
ITmaze - ABN: 56 178 057 063 - ph: 04 1219 8888 - address@hidden