Home > OS >  The cat command written to the file
The cat command written to the file

Time:12-31

Want to use Java calls the cat command to specify the content "abcd" written to the file 2. TXT, has been stuck, the problem is the command cannot be performed, should be how to write,

Performed successfully in the Linux terminal is the following content, how to use the following command execution, try the newline \ n, has been wrong,
The cat & gt; 2. TXT & lt; "A"
"B"
"C"
"D"
EOF
Thank you

CodePudding user response:

One less & gt; , it should be the cat & gt;> 2. TXT & lt; 2. TXT & lt; <"EOF
"
  • Related