UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: printChapter 4
The Bourne Shell and Korn Shell
Next: Reference: pwd
 

printf

printf format [val ...]

ksh93 only.Formatted printing, like the ANSI C printf function.

Additional Format Letters

%b

Expand escape sequences in strings (e.g., \t to tab, and so on).

%d

An additional period and the output base can follow the precision (e.g., %5.3.6d to produce output in base 6).

%P

Translate egrep extended regular expression into ksh pattern.

%q

Print a quoted string that can be reread later on.


Previous: Reference: printUNIX in a Nutshell: System V EditionNext: Reference: pwd
Reference: printBook IndexReference: pwd

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System