[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] can we change the extension of multiple files in SC3?
Ups!
I realise the commands of yours do not change the files like:
01 inst.txt
Is there any possibility to change the extensions of all files even
with the a space in its file name?
best,
prko
On Sat, Dec 26, 2009 at 10:07 PM, PyoungRyang Ko
<pyoungryang.ko@xxxxxxxxxxxxxx> wrote:
> also thanks!
>
> On Sat, Dec 26, 2009 at 9:19 PM, chris kummerer <chris@xxxxxxxxxx> wrote:
>> I read:
>>>
>>> thanks!
>>>
>>> On Sat, Dec 26, 2009 at 8:55 PM, Fredrik Olofsson <f@xxxxxxxxxxxxxxxxxxx>
>>> wrote:
>>>>
>>>> a= "/Applications/SuperCollider/sounds/*".pathMatch; //first generate
>>>> list with pathnames
>>>>
>>>> ( //then replace all .aiff with .xyz WARNING- MAKE BACKUP OF AIFF
>>>> SOUNDFILES IN SOUNDS/ FIRST
>>>> a.do{|x|
>>>> var pn= PathName(x);
>>>> if(pn.extension=="aiff", { //filter out .aiff files
>>>> ("mv"+pn.fullPath+pn.fullPath.replace("aiff",
>>>> "xyz")).unixCmd;
>>>> });
>>>> };
>>>> )
>>
>> I think I'll stick to bash for this,
>>
>> rename all '.ext' files in current dir to '.new':
>> $ for F in *.ext; do mv $F ${F/.ext/}.new; done
>> regards,
>>
>> x
>>
>> --
>> chris@xxxxxxxxxx Postmodernism is german romanticism with better
>> http://pilot.fm/ special effects. (Jeff Keuss / via ctheory.net)
>>
>> _______________________________________________
>> sc-users mailing list
>>
>> info (subscription, etc.):
>> http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
>> archive: https://listarc.bham.ac.uk/marchives/sc-users/
>> search: https://listarc.bham.ac.uk/lists/sc-users/search/
>>
>
>
>
> --
> 고 병량 (高 秉良)
> PyoungRyang Ko
>
> Tarostrasse 16 / Zi. 466 (0.414)
> 04103 Leipzig
> Germany
>
> Tel.
> Cell. (Homezone) : ++49 - 341 -260 2869
> Cell. (away): ++49 - 176 - 4002 4936
>
> E-Mail:
> pyoungryang.ko@xxxxxxxxxxxxxx
>
--
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/