Hello,
I have to write a function to input a Label and a number, and output a line as the following format:
Column 1 to 30: field label, left justified.
Column 31 to 45: A number, right justified.
The middle is padded with space. May I know how can I achieve this? (I don't know how to count the length of the label/number, and how to pad the spaces in between.)
Please help.
Many thanks.
SarahMore:
- Can I improve this script ???
- simple scripting question
- Invoking shell script from shell script
- Running remote shell script containing sql statements
- variables in sed
- Hash Question in Perl
- Array length in PERL
- Utility or script for renaming files on UNIX web server
- compress files
- simple shell - how to get a parameter typed in a shell script


LinkBack URL
About LinkBacks
Reply With Quote

























































Bookmarks