LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Success Stories (http://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/)
-   -   Wow, I just realized the beauty of linux!!! (http://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/wow-i-just-realized-the-beauty-of-linux-337345/)

rksprst 06-26-2005 12:43 PM

Wow, I just realized the beauty of linux!!!
 
Scripting

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 :D :D

Ah, I can't believe I never realized this earlier :o , it's so usefull

:allhail: the penguin

microsoft/linux 06-26-2005 12:50 PM

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?

rksprst 06-26-2005 12:58 PM

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


perfect_circle 06-26-2005 12:59 PM

Re: Wow, I just realized the beauty of linux!!!
 
Quote:

Originally posted by rksprst
Scripting

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 :D :D

Ah, I can't believe I never realized this earlier :o , 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's easier than just doing:
Code:

find / -type f -name "*.mp3" -exec mv {} /path/of/the/directory/  \;

microsoft/linux 06-26-2005 01:03 PM

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.

rksprst 06-26-2005 01:11 PM

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.

What's easier than just doing:
Code:

find / -type f -name "*.mp3" -exec mv {} /path/of/the/directory/  \;

Yep, I know that.. thats why I'm :o I just found this now

perfect_circle 06-26-2005 01:25 PM

Quote:

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 :D :D
of rksprst's starting post.

AlexV 06-26-2005 02:10 PM

Re: Wow, I just realized the beauty of linux!!!
 
Quote:

Originally posted by rksprst
Wow, I just realized the beauty of linux!!!
Congratulations, you have achieved enlightenment!
You will be reincarnated as a penguin ;)

XavierP 06-26-2005 02:31 PM

This seems like a Success Story to me. So that's where you'll find this thread from now on.

rksprst 06-26-2005 07:13 PM

Re: Re: Wow, I just realized the beauty of linux!!!
 
Quote:

Originally posted by AlexV
Congratulations, you have achieved enlightenment!
You will be reincarnated as a penguin ;)

awesome i always found them so cute:D


All times are GMT -5. The time now is 05:09 PM.