in reply to how to store data in file with out using print
if double quotes surrounded by $a is missed, then if $a contains ;(semi colon) then the echo won't write into the file, the echo command just end with that semi colon, so double quotes around $a is must$filename = <absolute path of the file>; `echo "$a" > $filename`
it just creates a 0 byte file, because that semi colon just ends that echo command, and the redirection operator would have already created that file with 0 byte size$a = "this is testing;"; `echo $a > $filename`
|
|---|