I have a problem with variable substitution in bash. I'm doing like as explained in below code, but cd $d is not going into original directory i.e. after expanding $var
export var="/a/b/c" for d `cat file.f`; do cd $d done
file.f: $var/aa/bb/cc
Any help is greatly appreciated.
Thanks,
Aucun commentaire:
Enregistrer un commentaire