|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Is there a way to add padding to a bash shell script?
I'm grepping several lines and I want all of them to display with the same padding, is there a command to add whitespace before a line?
|
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
have a look at Code:
printf Code:
$ printf "%15s\n" hello how are you?
hello
how
are
you? |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| zero padding problem (bash) | jremio | Shell Programming and Scripting | 4 | 01-09-2012 10:21 PM |
| Bash Shell Script | help123 | Shell Programming and Scripting | 6 | 11-14-2011 09:09 PM |
| bash padding | ab52 | Shell Programming and Scripting | 3 | 07-25-2011 01:04 PM |
| Bash shell script- help | sam101 | Shell Programming and Scripting | 1 | 01-26-2011 05:41 PM |
| bash typeset padding with zeros | jwheeler | Shell Programming and Scripting | 2 | 07-08-2008 01:09 PM |
|
|