cant get variable outside "while" in ssh

view full story

http://www.unix.com – Hi all I have a problem with this var :( I dont know why I cant get it ?!!?! Im trying with Code: newvar1=$(($var+1)) newvar1=$(($var + 1)) newvar1=`expr $var + 1` expr: syntax error expr: syntax error expr: syntax error but it not work :( in other script its ok and working tell me where is the problem pls? Code: awk  '/<iframe /{p=1} /<\/iframe>/{p=0; next}!p' |  while read myline; do newvar1=${myline} done echo $newvar1 Thank you!!! (HowTos)