English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I came across something that is totally stumping me. I have a folder with a bunch of music files that (for instance) are named "track1.wav.mp3". I want to remove the "wav" extention and make them all "track.mp3's" I used what I thought would be the correct command but doesnt work. I can't think of how to do it to preserve the filenames without doing it one-by-one. What's the proper flags and syntax?
Guess I am a Unix newbie...

-Zach

2006-11-28 15:30:08 · 2 answers · asked by zachsandberg 3 in Computers & Internet Other - Computers

~~Thanks Cedric, your help is appreciated..

2006-11-28 15:56:55 · update #1

2 answers

cd to your directory, then type:

ls *.wav* | awk '{print "mv "$0" "$0" "}' | sed s/.wav//2 | sh

enjoy!

2006-11-28 15:42:06 · answer #1 · answered by Cedric 2 · 1 0

U rename a document in Unix no longer by giving it a sparkling call yet by growing to be a document with the wanted call and copying the contents of the unique document to the hot document.THe command U use to finish that is "MV" short of "bypass". as an get mutually for ur situation mv Product1 Product2

2016-11-29 22:09:11 · answer #2 · answered by ? 4 · 0 0

fedest.com, questions and answers