Sponsored Content
Full Discussion: %-50s
Top Forums Programming %-50s Post 302161714 by jim mcnamara on Friday 25th of January 2008 03:25:08 PM
Old 01-25-2008
You can experiment from the command line with the printf command
Code:
csadev:/home/jmcnama> printf "%-50s\n" "hi there"
hi there
csadev:/home/jmcnama> printf "%50s\n" "hi there"
                                          hi there

It left justifies text, pads to 50 character length with spaces , %s is a format specifier for printf.
 
All times are GMT -4. The time now is 07:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy