LinuxQuestions.org Member Success StoriesJust spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I never considered the scripting as something usefull, and I thought it was very complex. But yesterday I had to convert m4a files to mp3 files and I used a script
To my surprise it was VERY easy, and the scripting language looked almost identical to java, c++
So, now I have to select all the mp3 files and move them to a different folder.. Now I have around 2000 of them, so guess how I'm gonna do that.... gonna write a script
Ah, I can't believe I never realized this earlier , it's so usefull
does conversion remove all DRM's? Could one theoretically use napster to go, convert all the files to mp3, then use them as long as wanted? Could you post your script code?
I'm not sure if it removes the DRM, you can try... it would be a great idea, illegal, though ...
This is not my script, I found it (I think on LQ)
Code:
#1 install faad2 (urpmi faad2, etc.)
#2 run bash script:
# Put this script in the directory where you have the m4a files
#
# Dump m4a to wav to mp3
for i in *.m4a
do
base=`basename "$i" .m4a`
faad -o - "$i" | lame -h -b 192 - "$base.mp3"
done
I never considered the scripting as something usefull, and I thought it was very complex. But yesterday I had to convert m4a files to mp3 files and I used a script
To my surprise it was VERY easy, and the scripting language looked almost identical to java, c++
So, now I have to select all the mp3 files and move them to a different folder.. Now I have around 2000 of them, so guess how I'm gonna do that.... gonna write a script
Ah, I can't believe I never realized this earlier , it's so usefull
:allhail: the penguin
Most of us already know that.
You should tell that to all those who think that shells and scripts are 80's stuff and useless in modern operating systems.
what does that do? I don't see anything about m4p files in the script posted by perfect_circle. Perhaps it's my ignorance...why would removing DRM be illeagal? I'm not familiar w/ the law.
Re: Re: Wow, I just realized the beauty of linux!!!
Quote:
Originally posted by perfect_circle Most of us already know that.
You should tell that to all those who think that shells and scripts are 80's stuff and useless in modern operating systems.
Originally posted by microsoft/linux what does that do? I don't see anything about m4p files in the script posted by perfect_circle. Perhaps it's my ignorance...why would removing DRM be illeagal? I'm not familiar w/ the law.
Perhaps I should have stated it clearer. It's about this part:
Quote:
So, now I have to select all the mp3 files and move them to a different folder.. Now I have around 2000 of them, so guess how I'm gonna do that.... gonna write a script
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.