create file with content shell script code example Example: How do you create a file in shell script? touch NewFile.txt