3

Help with printf in shell scripting

view full story
linux-howto

http://www.unix.com – Hi all I am using printf in my shell script to format my output.I am using the following code. Code: printf "|\tIP Address\t|\tModel Number\t|\tDOM/HW\t|\tSoftware Version\t|\n"                      printf "|\t%s\t|\t%s\t\t|\t%s\t|\t%s-%s\t\n" $encoder $modelno $type $sv1 $sv2   printf "|\tFPGA DATECODE\t|\tAX VERSION\t|\tUP TIME\t\n"   printf "|\t%s\t|\t%s\t|\t%s days %s hours\t|\n" $fpgacode $axversion $edate1 $etime1 I need a output to be like following Code: |  (HowTos)