home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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: print UNIX in a Nutshell: System V Edition Next: Reference: pwd
Reference: print Book Index Reference: 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