Alexander Birch on 5 Nov 2005 21:54:51 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] bash script help


On 11/5/05, Art Alexion <art.alexion@verizon.net> wrote:
<snip />
>
> I used to be able to run it like this
>
> prepend.filename Chipmunks- *.mp3
>
> and it would prepend Chipmunks- to every mp3 file in the current working
> directory.  Now strangely, it works on one file, then exits.  Run it
> again and it works on the next file and exits again.  What went wrong?
>

Have you thought about using rename, which was created by Larry Wall?

For your needs it'd be rename "s#^#Chipmunks-#" *.mp3

Cheers,
Alex


--
To avoid spyware:
Use Firefox.
http://www.mozilla.org
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug