리눅스 printf

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:40 판 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

/usr/bin/printf
printf
  • 문자열 출력 리눅스 명령어

2 문자열 출력[ | ]

[root@zetawiki ~]# printf "hello\n"
hello
[root@zetawiki ~]# printf 'hello\n'
hello

3 배열 출력[ | ]

[root@zetawiki ~]# ARR=("John Smith" "Jane Doe" "Mike Barnes" "Kevin Patterson")
[root@zetawiki ~]# printf '%s\n' "${ARR[@]}"
John Smith
Jane Doe
Mike Barnes
Kevin Patterson

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}