<div dir="ltr"><div>Another thing you can do is: do the echo from <br></div><div>within the script, not after it finished, to see if</div><div>it is set to the value you want from ls/grep.<br></div></div>