Bash 双重重定向 (<<==) 是什么意思?
Bash double redirection (<<==) meaning?
重定向中的<<==是什么意思?
sftp blah@server <<== >> test.log
用户试图向命令输入什么?
这是一个 here document/heredoc. From the bash man page:
This type of redirection instructs the shell to read input from the current source until a line containing only word (with no trailing blanks) is seen. All of the lines read up to that point are then used as the standard input for a command.
The format of here-documents is:
<<[-]word
here-document
delimiter
示例:
$ cat <<==
> Hello
> World
> ==
给出:
Hello
World
重定向中的<<==是什么意思?
sftp blah@server <<== >> test.log
用户试图向命令输入什么?
这是一个 here document/heredoc. From the bash man page:
This type of redirection instructs the shell to read input from the current source until a line containing only word (with no trailing blanks) is seen. All of the lines read up to that point are then used as the standard input for a command.
The format of here-documents is:
<<[-]word here-document delimiter
示例:
$ cat <<==
> Hello
> World
> ==
给出:
Hello
World