1

Bash scripting help

view story
linux-howto

http://ubuntuforums.org – Hi all I am trying to write a simple script to make it easy download the Triple J feature album, incorporating rtmpdump and pacpl. Code: #!/bin/bash echo "Directory: " read directory cd $directory echo "xml:" read xml grep "rtmp" $xml | tr "[ ]" "[\n]" | grep "rtmp" | sed "s/url=//g" >> .rtmp for line in `cat .rtmp`; do echo $line | tr -d '"' echo "name of track: " read  "name" rtmpdump -r "$line" -o "$name.flv" pacpl ."$name".flv -t mp (Hardware)