Printing values in special format using printf
Posted
by yael
on Stack Overflow
See other posts from Stack Overflow
or by yael
Published on 2010-06-02T09:11:16Z
Indexed on
2010/06/02
9:13 UTC
Read the original article
Hit count: 180
linux
I need to print the following values with printf as the follwoing around like this:
printf "[`date +%d"/"%b"/"%G"-"%T`] [WARN] $PARAM1 $PARAM2 $PARAM3
The required output:
[02/Jun/2010-11:08:42] [WARN] val1....val2...val3
© Stack Overflow or respective owner