Unix Shell - Re: printf to pad with spaces BUT trips over when data being padded

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > January 2006 > Re: printf to pad with spaces BUT trips over when data being padded





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: printf to pad with spaces BUT trips over when data being padded
Michael Tosch

2006-01-06, 5:57 pm

Dundonald wrote:
> Greg Andrews wrote:
>
>
>
>
> Greg, top man, thanks very much!
>


I hope this was an example.
Otherwise better use printf without awk:

printf '%-20s\n' "$variable"


--
Michael Tosch @ hp : com
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com