I've:/home/wms/mp3/and/home/wms/tmp/Inside ~/tmp my script:#!/bin/bashbr=64for a in $1*.mp3 ;do ffmpeg -i $a -ar 44100 -ab $br $br_tmp/${a%.*} [$br].mp3 ; doneI do:/home/wms/tmp/./script.sh /home/wms/mp3/How I handle $1?because @1 concides with /home/wms/mp3/first1${a%.*} cuts extension filebut the path is not correct: this script runs only if I runs it inside ~/mp3
how handle a path ($1)
bash;parameter