EOF is a token that tells the cat command to terminate when it sees such a token in the subsequent lines.
cat > readme.txt << EOF
This is an input stream literal EOFFollowed by CTRL+D to terminate the command:
cat > readme.txt This is a readme file. This is a new line.
Append to an existing file, we can use the “>>” operator:
没有评论:
发表评论