cut mp3 files linux

By admin  

TO ALL LINUX USERS. How do I make a bash script to convert an mp3 directory into .au files?

I want to use the ‘for in’ keywords, and sox command, but I can’t figure out how to do the second variable. Here’s a rough example:
#!/bin/bash
for jam in *.mp3
do
sox $jam $jam.au | cut -d. -f1
done

I’m having trouble with the second variable not working. Any ideas. I want the original song names to be preserved. Just converted to au format. Thanks for any help.

the problem is that the second variable is becoming this.mp3.au for the sox command which isnt going to like it. You had the right idea but you need to trim earlier then add the .mp3 and the .au where needed.

#!/bin/bash
for jam in `ls -1 *.mp3 | cut -d. -f1`
do
sox $jam.mp3 $jam.au
done

How to Record Streaming Audio online as MP3 Files Using Audacity


Tascam DR07 Portable Digital Recorder


Tascam DR07 Portable Digital Recorder


$199.00


TASCAM’s DR-07 brings portable digital recording to an even smaller, more affordable package. A pair of highly-sensitive built in mics captures a wide stereo image, recording in either MP3 or 16/24-bit WAV format. The DR-07 is powered by AA batteries and it transfers files to a computer using a high-speed USB 2.0 connection. The versatile recorder even includes a windscreen, tripod stand mount and…

Panasonic Lumix DMC-TS1 12MP Digital Camera with 4.6x Wide Angle MEGA Optical Image Stabilized Zoom and 2.7 inch LCD (Silver)


Panasonic Lumix DMC-TS1 12MP Digital Camera with 4.6x Wide Angle MEGA Optical Image Stabilized Zoom and 2.7 inch LCD (Silver)


$344.69


Gear up for active outdoor fun with a tough camera that captures both photos and HD videos.Waterproof, dustproof, and shockproof.The camera body is waterproof to 3 m (9.84 ft). It’s dustproof too, so you don’t have to worry about dust or sand getting inside. And it has passed drop tests at a height of about 1.5 m (4.92 ft). This is one tough little camera that you can take wherever action takes yo…

Sony HDR-CX12 High Definition Memory Stick PRO Duo Handycam Camcorder With 12x Optical Zoom


Sony HDR-CX12 High Definition Memory Stick PRO Duo Handycam Camcorder With 12x Optical Zoom


$1,999.00


The palm-sized Sony HDR-CX12 Handycam camcorder is the world’s first camcorder with both Face Detection and Smile Shutter technology. With Smile Shutter, the HDR-CX12 can detect smiles and automatically capture still images, even while recording video. 1920 x 1080 Full High Definition8 video resolution and 10.2 megapixel still image recording ensure your memories are preserved in stunning detail. …
Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • BlinkList
  • LinkedIn
  • MySpace
  • StumbleUpon
  • Technorati
  • Twitter

Post a Comment

Your email is never shared. Required fields are marked *

*
*