Bash write variable to file without echo