bryan.6
10-14-2003, 03:25 PM
I'm quite new to sed - in fact i just started reading tutorials and fooling around with it today. I was just wondering how to change file names with sed.
for example, if i have a file that looks like this
/mnt/hda6/...../artist-title.mp3
and I want to use a sed script to change it to this
/mnt/hda6/...../Artist - Title.mp3
I'll work on the sed for it, please don't tell me how to do that (i like the challenge), but i want to know, do i need to use a 'mv' command and pipe it to the sed script, or how would i go about this? i hope you understand my question. thanks in advance.
bryan.6
for example, if i have a file that looks like this
/mnt/hda6/...../artist-title.mp3
and I want to use a sed script to change it to this
/mnt/hda6/...../Artist - Title.mp3
I'll work on the sed for it, please don't tell me how to do that (i like the challenge), but i want to know, do i need to use a 'mv' command and pipe it to the sed script, or how would i go about this? i hope you understand my question. thanks in advance.
bryan.6