linux - How to Execute Command stored in variable from a file -
cmd="cd /home/pi"
$cmd , eval "$cmd"
this working in cli interested run command variable stored in file. in file wrote
$cmd , eval "$cmd"
and execute file cli shows error. solution??
Comments
Post a Comment