|
Razza, the delineator makes a difference with sed. The code below or the first few lines from Imo would still work in a script with directory paths included:
input_dir_root='/data/wav'
output_dir_root='/data/mp3'
LINE='/hello/you/data/wav'
echo $LINE |sed "s#$input_dir_root#$output_dir_root#"
If you replace # with / , the above would fail as sed would be confused with where the command ends. Test it out on your script and let us know...
:-D
|