LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 12: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, 12: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: 48
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, 12:58 PM   #3
rksprst
Member
 
Registered: Jan 2004
Distribution: OS X 10.4
Posts: 172

Original Poster
Blog Entries: 1

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, 12:59 PM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
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, 01: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: 48
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, 01:11 PM   #6
rksprst
Member
 
Registered: Jan 2004
Distribution: OS X 10.4
Posts: 172

Original Poster
Blog Entries: 1

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, 01:25 PM   #7
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
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, 02: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, 02:31 PM   #9
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

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

Original Poster
Blog Entries: 1

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



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
M$ Help: Removing Linux... Wow. duane534 General 12 08-11-2005 09:39 PM
Conectiva Linux 10. Wow! raid517 Linux - Software 3 03-27-2004 12:24 PM
Mock Beauty Pagent Spaz17 General 4 02-26-2004 09:11 PM
WOW - - -New Linux gcombe74 Linux - Hardware 2 09-10-2003 10:48 PM
Here's another beauty from Baghdad McBride... flapjackboy General 4 09-09-2003 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 03:57 PM.

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