Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # NOTE : Quote it else use array to avoid problems #
- for f in `ls *.mp3`
- do
- echo "------Start------"
- echo "Processing $f file..."
- fbname=$(basename "$f" | cut -d. -f1)
- newname="${fbname}_output.mp3"
- echo "Output: ${newname}"
- sox $f $newname trim 10 -10
- echo "--------End------"
- # take action on each file. $f store current file name
- #cat "$f"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement