![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| printf | arunviswanath | High Level Programming | 2 | 09-19-2007 09:31 PM |
| the printf command | bebop1111116 | Shell Programming and Scripting | 4 | 10-01-2006 12:40 AM |
| find: problems escaping printf-command string | grahamb | Shell Programming and Scripting | 1 | 12-04-2005 04:00 PM |
| need help with printf command | nymus7 | Shell Programming and Scripting | 1 | 04-21-2005 07:05 PM |
| printf command | FIRE | Shell Programming and Scripting | 2 | 08-07-2002 02:18 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
printf command in ksh
Hi,
I am very confused with my printf command. Somehow one variable can't line up with others... newstart2 ="Mon Nov 11 01 00:00:00 2002" printf "%-20s" $newstart2 Here is the output: Mon Nov 11 01 00:00:00 2002 It spread out to two lines.. Why? |
|
||||
|
Code:
#!/bin/ksh newstart2="Mon Nov 11 01 00:00:00 2002" printf "%-30s\n" "$newstart2" |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|