Bit #38
Quickly write to a file through command line:
- Replace whole file
Terminal window echo "Hello world" | cat > hello.txt - Append to end of file
Terminal window echo "Hello world" | cat >> hello.txt
Quickly write to a file through command line:
echo "Hello world" | cat > hello.txtecho "Hello world" | cat >> hello.txt