bash new file code example
Example 1: bash create file
touch <new-file-name>
touch NewFile_1.txt
touch <1st-file-name> <2nd-file-name> ... <Nth-file-name>
touch NewFile_1.txt NewFile_2.txt NewFile_3.txt
Example 2: create a new file in bash script
touch newfile_1.txt
Example 3: how to make a new file in bash
touch <FileName>
touch index.html
touch hello.txt
'''
To able to write/append to that file, first you
have to create the file as did before and then use "cat" command to do so...
'''
cat > <FileName>
cat > index.html
cat > hello.txt
'''
To read the content of the files, use just "cat" without the ">" symbol...
'''
cat index.html
cat hello.txt