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 Information:
- /how-to-use-a-blank-space-as-padding-character-to-form-a-string-that-initializes-a - Cached - SimilarSpace Place Launch PadCome on in and check out our games, animations, projects, and fun facts about Earth, space and technology
- Buy Space Age Non Skid Rug Pad and Non Slip Carpet Underlay (2' x 8') at the lowest price, guaranteed! $2
- 6, 2010 at pad 39a of the NASA Kennedy Space Center in Cape Canaveral, Florida
- echo "enter the file name you want to pad" read file echo "enter the amount of spaces you want to add" read add x=0 while [ $x !=
- anybody have any clue? Do I use LPAD???? if so, do i need
- Space shuttle Discovery arrives at pad 39A for launch preparations after a six hour journey from the Vehicle Assembly Building at the Kennedy Space Center in Cape Canaveral, Fla
- Released in 1993, Space Age Bachelor Pad Music refined Stereolab's sound further and also showcased the increasingly experimental focus of the band's music


LinkBack URL
About LinkBacks



Reply With Quote






















































Bookmarks