I am trying to print something into a file through the script which will be sent as an attachment to the mail.Now what i am willing is to preserve a proper formatting within the file.Can i print maintaining the tabular format similar to something what we do it html tables.Suppose, in a loop the code is appending something like:        `print |App Name:$1\tRegion:$2\tEnvironment:$3| >> file_attch.dat`Now the argument size can vary, say $1 can be 7-10 character , $2 is 5-15 character and $3 is 10-20 character.Now printing successive line of varying character length is making the attachment look odd.Can i do something to reserve first 10 character for $1, 15 characters for $2 ad say 20 character for $3. Kind of formatting within print which would server the purpose.UPDATE:MAy be i didnt framed the question properly. Here is a example :    App:PROPIA  Region:silo2   Env:INT    App:SRO  Region:silo3   Env:SYSIn the above case as PROPIA and SRO vary with character length, the tabular format is not preserved. I wanted something like below:    App:PROPIA  Region:silo2   Env:INT    App:SRO     Region:silo3   Env:SYSSomething like reserving 10 character for 1st argument and next 10 for 2nd argument, irrespective of the ;ength of actual character
Logging to a file in tabular format
shell script;scripting;logs;printf