@tig said:
You could try editing the code as follows - inside the
{}
block of
...each{|d|...}
substitute...
Change the value of
i=
to how many characters you want to loose...
To trim off the end use
i=10;n=d.name;1.times{n=n.chop};d.name=n;
To trim off the start use
i=10;n=d.name;n=n[i..-1];d.name=n;
>
thanks for your help,much appreciated
would you please create a file for me with a calling name like
delete "last_3"
or
Delete"frist_5"
i am able to use the banding "prefix-" script
i don't know anything about coding
but your script is what i was looking for and need