echo "{" >tmp cat filename.txt >>tmp echo "}" >>tmp mv tmp filename.txt