shell-11 input contents to a file

1. Enter the single line to file: echo "111"> 1.txt

2. Enter multiple lines to the file: cat << EOR> 1.txt

<111

<222

<333

<EOF

Guess you like

Origin www.cnblogs.com/jingzaixin/p/12436436.html