[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] How to print a string in the quote form not in the escaped f
From: |
Peng Yu |
Subject: |
[Help-bash] How to print a string in the quote form not in the escaped form? |
Date: |
Tue, 26 Apr 2016 07:58:51 -0500 |
Hi, printf %q will print the string in the escaped form.
~$ printf '%q\n' "'"
\'
I the above example, I'd like to print it as "'" (including the double
quote). Is there a way to do so? Thanks.
--
Regards,
Peng
- [Help-bash] How to print a string in the quote form not in the escaped form?,
Peng Yu <=