LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-14-2006, 04:01 PM   #1
eo697
Member
 
Registered: Jul 2003
Posts: 33

Rep: Reputation: 15
script help


I have a large mp3 collection in one folder, i would like to organize them by artist, i found this script on the internet. http://blog.jardas.de/2005/07/13/mp3...rize-script-2/
It says if it doesnt work, to "concatenating lines ending with a backslash" I do not know how to do this, any help would great. thanks
this is the error message i am getting
"Can't find string terminator '"' anywhere before EOF at -e line 2."


#!/bin/bash
find . -maxdepth 1 -name '*.mp3' -type f -exec perl -e \
'$f=$a=$ARGV[0]; $a=~s/^\.\/(.*)\s+-\s+.*$/$1/;\
print \"$a\n\"; mkdir $a; rename($f, \"$a/$f\");' \
'{}' \;
 
Old 11-14-2006, 04:58 PM   #2
Drax946
Member
 
Registered: Jun 2005
Location: WV USA
Distribution: Manjaro
Posts: 43

Rep: Reputation: 15
This would be done in a text editor like gvim, emacs, kate, gedit or one of the many others. I've tried to list the graphical editors for just ease of use and reduction of explaining commands.

"concatenating the lines ending with a backslash" would basically be finding a line that ends in a "\" character, then removing that character and joining this line with the one below so that both are now just one line. Then you would look again for a line ending in a "\" and continue the process until there are no more lines ending with a "\".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 04:19 AM
Directory listing - Calling shell script from a CGI script seran Programming 6 08-11-2005 11:08 PM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 11:00 AM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 12:20 AM
linux 9 and java script error - premature end of script header sibil Linux - Newbie 0 01-06-2004 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration