HOSTNAME1: 1.2.3.4.5.6.7 Everyone
TARGET_DIR: /tmp Hello
TARGET_DIR1: /tmp/tmp1/tmp2 Thank you Unix Forum
The problem, it's fixing the end position and starts writing towards left, but i need output like this, since i don't know the length of the "TARGET_DIR"
HOSTNAME1: 1.2.3.4.5.6.7 Everyone
TARGET_DIR: /tmp Hello
TARGET_DIR1: /tmp/tmp1/tmp2 Thank you Unix Forum
The font is not appearing what i expect here, anyway but i need "Everyone" "Hello" "Thank you unix Forum" should start at same position.
Thanks for your reply....
I don't know the length of the second field, all data is coming dynamically, is there a way i can print 3 field starting from 50th location towards right, doesn't matter what is the length of 1'st and 2'nd fields.
Read my edited post above, there I have that as a last suggestion (only "%s" as last format)
AND I also changed the format strings in that post - you were to quick
And perhaps edit in you post were you quoted me, so not others will be confused...