[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] How to print a string in the quote form not in the escap
From: |
Matthew Cengia |
Subject: |
Re: [Help-bash] How to print a string in the quote form not in the escaped form? |
Date: |
Tue, 26 Apr 2016 23:06:10 +1000 |
No, there is not. It's escaped; why does it matter how it's escaped?
On Tue, Apr 26, 2016 at 10:58 PM, Peng Yu <address@hidden> wrote:
> 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
>
>
--
Regards,
Matthew Cengia