bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undocumented usage of printf?


From: Jan Schampera
Subject: Re: Undocumented usage of printf?
Date: Thu, 15 Apr 2010 18:00:11 +0200
User-agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329)

Clark J. Wang schrieb:
> I saw a printf usage from a Linux forum's post:
> 
> # printf "%d\n" "'a"
> 97
> #
> 
> It's really cool but I found no info in bash's manual. Are there any other
> undocumented interesting features? :)
> 

I "documented" it, though I don't remember where I first heard about it.
Maybe I stumbled over it in POSIX (it's specified there).

http://bash-hackers.org/wiki/doku.php/commands/builtin/printf#arguments


Jan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]