Single quote in single quote

  • 103dong103ho
    (103동103호)
  • 103dong103ho's Avatar 이 글의 작성자
  • Offline
  • Newbie
  • Newbie
더보기
05 Nov 2019 10:46 #4938 작성자: 103dong103ho
103dong103ho 님의 글: Single quote in single quote
echo $'It\'s Shell Programming' # ksh, bash, and zsh only, does not expand variables
echo "It's Shell Programming" # all shells, expands variables
echo 'It'\''s Shell Programming' # all shells, single quote is outside the quotes
echo 'It'"'"'s Shell Programming' # all shells, single quote is inside double quotes
Time to create page: 0.097 seconds
Powered by Kunena Forum