Hi Guys,
I hope you are doing good out there.
I am facing some issues in the alligment of the output of a shell script.
Below is the statement which is formatting the output:
echo $File | awk -F '[ /]' '{print $13,$15="\t"$16,$4="",$5,$6,$7}'
and its output is
Domain Log file Time last updated
ICCIR2TEST16 BPOrderExecutionManagement-Gemini-BPOrderExecutionManagement-Gemini.log Jul 14 10:59
ICCIR2TEST16 ContactChannelManagement-SVAP-ContactChannelManagement-SVAP.log Jul 14 10:42
ICCIR2TEST16 DataIntegration-Misc-DataIntegration-Misc.log Jul 14 10:33
ICCIRSTDEV03 CustomerContactManagement-CRM6-CustomerContactManagement-CRM6.log Jul 14 10:58
ICCIRSTDEV03 CustomerPersonalInformationManagement-CRM6-CustomerPersonalInformationManagement-CRM6.log Jul 14 10:55
ICCIRSTDEV03 TIL_SCM_CRM6-TIL_SCM_CRM6.log Jul 14 12:05
As you can see the last coloumn is not alligned properly. This is due to invariable string size of the files.
I tried lots of tricks but no luck.
Can you please let me know the way to properly allign the output?
Any help would be highly appereciated.
Thanks,
Chandan