How to specify justification?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to specify justification?
# 1  
Old 07-03-2007
How to specify justification?

LOOP

`echo "$COLNAME $TYPENAME($LENGTH) $NULLS " | awk ' { printf("%20s%20s%20s\n",$1,$2,$3) } ' ` >>$DDL_FILE

END-LOOP


How to change the alignment of the above text. I.e by default it is right justified. but i want left justification

Last edited by skyineyes; 07-03-2007 at 09:39 AM.. Reason: didnt disply as per requirement
# 2  
Old 07-03-2007
Code:
printf "%10s\n" "Test"
printf "%-10s\n" "Test"

Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Awk reporting. Format the output with left justification for every feild

Fallowing is the input file that is pipe seperated. is it possible to generated the report that is alligned left justifed as that of sample output. I apprecitae your help on this. InputFile (temp.txt): 108005555|001|christina.lipski||Submitter... (3 Replies)
Discussion started by: ainuddin
3 Replies
Login or Register to Ask a Question