How to echo single quote in bash shell Bash, Commands Add comments Apr 232013 How to echo single quote in bash shell Answer: To echo single quote (using single quote only), you can try # echo foo foo # echo \'''foo 'foo Related posts: Simple for loop in Bash shell How to get the PID in current bash shell script Check if a file exist in Bash Shell Printing the exclamation mark using echo How to echo a tab in bash? Leave a Reply Cancel reply Name (required) E-mail (required) URI Your Comment You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>