1 개요[ | ]
- here document, here-document, heredoc, hereis, here-string, here-script
- 히어 문서, 히어 도큐먼트, 히어 다큐먼트, 히어 문자열, 히어닥
- 문자열을 쉘스크립트나 프로그래밍 언어 중에 그대로 포함시키기 위한 방법
<<
뒤에 식별자를 선언하고 원하는 문자열을 쓴 후에 식별자로 끝내면 된다.- 지원환경·언어: UNIX 계열 쉘스크립트(sh, csh, ksh, bash, zsh), Perl, PHP, Python, Ruby 등
Console
Copy
[root@zetawiki ~]# cat << EOF > a.txt
> hello
> world
> EOF
[root@zetawiki ~]# cat a.txt
hello
world
2 같이 보기[ | ]
3 참고[ | ]
편집자 Jmnote bot Jmnote
로그인하시면 댓글을 쓸 수 있습니다.