create bash script code example Example 1: create a new file in bash script touch newfile_1.txt Example 2: how to create a bash script echo "Hello, world!"