Will Clarke

Writing Files Through Shell

2014-08-25

Writing to file in Bash

cat >/my/path.extension <<EOL
line 1,
line 2,
line 3,
line 4 line
...
EOL

Another thing about cat:

cat > file writes to file cat >> file appends to file


Tags

bash shell unix