3 Replies Latest reply on Dec 29, 2017 10:39 AM by Dude!

    Adding spaces

    vikas yadav 250190-Oracle

      Hi ,

       

      I have the following command,

      echo "`gpg --list-keys test at date | grep "\[expires:" | awk -O {' print $1,$2,  $3,  $5'} | sed -e 's/\]//g'`" >$file

       

      the output generated from command is

      ,

      i print this output in shell script as

       

      echo "##########################################################################################################"

      echo "                            GPG KEY DETAILS                               "

      echo "TYPE KEY NUMBER     CREATE DATE EXPIRY DATE EXPIRING IN "${5}" DAYS"

      echo "---- -------------- ----------- ----------- ---------------------------"

      cat $file

      echo "##########################################################################################################";

       

       

      i need to modify it to

       

       

      can  anyone help in adjusting the alignment of records.