LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just 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

Reply
 
Search this Thread
Old 06-26-2005, 01:43 PM   #1
rksprst
Member
 
Registered: Jan 2004
Distribution: OS X 10.4
Posts: 172
Blog Entries: 1

Rep: Reputation: 30
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

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

:allhail: the penguin
 
Old 06-26-2005, 01:50 PM   #2
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 45
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?
 
Old 06-26-2005, 01:58 PM   #3
rksprst
Member
 
Registered: Jan 2004
Distribution: OS X 10.4
Posts: 172
Blog Entries: 1

Original Poster
Rep: Reputation: 30
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
 
Old 06-26-2005, 01:59 PM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
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

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's easier than just doing:
Code:
find / -type f -name "*.mp3" -exec mv {} /path/of/the/directory/  \;
 
Old 06-26-2005, 02:03 PM   #5
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 45
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.
 
Old 06-26-2005, 02:11 PM   #6
rksprst
Member
 
Registered: Jan 2004
Distribution: OS X 10.4
Posts: 172
Blog Entries: 1

Original Poster
Rep: Reputation: 30
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 I just found this now
 
Old 06-26-2005, 02:25 PM   #7
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
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
of rksprst's starting post.
 
Old 06-26-2005, 03:10 PM   #8
AlexV
Member
 
Registered: May 2004
Location: New Lenox, IL
Distribution: Fedora Core 4; Ubuntu 5.10 (Breezy Preview); CentOS 4
Posts: 81

Rep: Reputation: 15
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
 
Old 06-26-2005, 03:31 PM   #9
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
This seems like a Success Story to me. So that's where you'll find this thread from now on.
 
Old 06-26-2005, 08:13 PM   #10
rksprst
Member
 
Registered: Jan 2004
Distribution: OS X 10.4
Posts: 172
Blog Entries: 1

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
M$ Help: Removing Linux... Wow. duane534 General 12 08-11-2005 10:39 PM
Conectiva Linux 10. Wow! raid517 Linux - Software 3 03-27-2004 01:24 PM
Mock Beauty Pagent Spaz17 General 4 02-26-2004 10:11 PM
WOW - - -New Linux gcombe74 Linux - Hardware 2 09-10-2003 11:48 PM
Here's another beauty from Baghdad McBride... flapjackboy General 4 09-09-2003 05:06 PM


All times are GMT -5. The time now is 08:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration