The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Adding spaces to record
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Adding spaces to record
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
01-26-2008
Franklin52
Moderator
Join Date: Feb 2007
Posts: 2,471
Your printf statement should look like:
Code:
printf '%015d%-200s\n' $recs
Regards
Franklin52
View Public Profile
Find all posts by Franklin52