September 2009
Beginner
942 pages
85h 34m
English
printf
printf [-vvar]format[val...]
Format the specified values according to the format format and write them to standard output. The possible format character strings are those of the ANSI C printf function plus several additional strings.
Write output to the variable var instead of standard output.
Expand escape sequences in strings (e.g., \t to tab, and so on).
Print a quoted string that can be reread later on.
$dateReformat date/time Fri May 15 15:39:42 EDT 2009 $printf "%(It is now %m/%d/%Y %H:%M:%S)T\n" "$(date)"It is now 05/15/2009 15:40:10