I've some music that is all named 1 - (song author) - (song name).flac and I want to change the file name to just (song author) - (song name).flac then move it to a directory. Heres what I have so far:
while IFS='' read -r line || [[ -n "$line" ]]; do
cp $line /home/user/Desktop/Music/$(cut -c3- "$line");
done < filelist.txt
filelist.txt contains a list of files that I want renamed and moved.
It doesn't work, but in a way I thought was interesting. I get the error bash: /bin/cp: Argument list too long, and after examining the contents of line after the cut, it just looks like random characters/character codes. Could someone tell me what I am doing wrong?
برچسب:
نویسنده: استخدام کار