Hey Nils & all<br>                                Again back for your  help.Your above help was really cool.Rocks!!<br>I have problem in following code.Here i am replacing a user's enter password with 53 number line of a file.It is replacing with no problem.But the part "$db_password" is not being replaced in file ,only password(suppose=>123) is placed at line number 53 .<br>
<br>echo "Pleae enter your  mysql's root password"<br>read pw<br>TOKKK=$(mktemp)<br>head -n $((53 - 1)) "config.php" > "$TOKKK"<br>echo "$db_password = $pw" >> "$TOKKK"<br>
LEN=$(cat "config.php"|wc -l)<br>tail -n $(($LEN - 53)) "config.php" >> "$TOKKK"<br>mv  "$TOKKK" "config.php"<br><br><br>Why?<br>What might be wrong?<br><br>Thank in a advance !!<br>
<a href="http://amritpalpathak.blogspot.com">amritpalpathak.blogspot.com</a><br>