+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 3 of 5

Thread: How to pad spaces

  1. #1
    innofsrirm
    Guest

    How to pad spaces

    300.000 Free softwares download here
    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.



    Sarah
    More Information:
    1. /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
    2. Buy Space Age Non Skid Rug Pad and Non Slip Carpet Underlay (2' x 8') at the lowest price, guaranteed! $2
    3. 6, 2010 at pad 39a of the NASA Kennedy Space Center in Cape Canaveral, Florida
    4. 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 !=
    5. anybody have any clue? Do I use LPAD???? if so, do i need
    6. 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
    7. 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

  2. #2
    uocmoxua87
    Guest

    In ksh you can use the typeset command:

    typeset -L30 fieldA

    typeset -R15 fieldB

    echo "${fieldA}${fieldB}"
    More Information:
    1. January 6th, 2010 Space shuttle moved to launch pad on freezing mornCAPE CANAVERAL, Fla
    2. If you want to control cell padding spaces within a table cell, you need to use the "cellpadding" attribute, which takes an integer in pixels
    3. Pad 39B was not ready until 1986, and the first Shuttle launch to use it was the ill-fated STS
    4. Customize this design with your own text and pictures or order as shown
    5. i guess i want it right justified with leading spaces
    6. As you can see from my example - On this platform, the CHAR datatype is clearly NOT space-padding as documented and as defined by the ANSI Standard

  3. #3
    hoangbactran
    Guest

    you can also use perls format or even printf.
    More Information:
    1. Discovery's astronauts will hold an informal Q&A with reporters at the pad at 8:40 a
    2. Hubble-Saving Space Shuttle Moves to Launch Pad , The mission has been delayed since last fall, when a data handling unit aboard Hubble unexpectedly
    3. html - CachedHow to pad spaces4 posts - 1 author - Last post: Sep 26, 2002May 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
    4. If margin, border and padding widths were all set at 0 width, the box would be right
    5. com : The Space Launch Pad is a portal site gives details about the launch pads for launching the space craft into space with complete
    6. At the pad, the MLP is lowered onto several pedestals, and the Crawler-Transporter moves off the pad to a staging area a safe distance away
    7. , March 31 /PRNewswire-USNewswire/ -- After safely reaching its launch pad at NASA's Kennedy Space Center in Florida, space
    8. The space shuttle Discovery lifts off from launch pad 39A at the Kennedy Space Center in October 2007 at Cape Canaveral, Fla
    9. Space shuttle Endeavour travels to launch pad on freezing morning for February flight
    10. March 4 -- STS-131 crew media availability: The crew will take questions from journalists at Launch Pad 39A at 8:40 a

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. How to put spaces in a url?
    I am trying to setup a link on my site that allows users to click on it and be directed to their twitter account and that puts text in their status...
  2. Replace spaces with +
    I need help would anybody no how to replace all the spaces within a sentence or phrase and replace them with using a code. thanks alot
  3. spaces in url's
    does google list pages with spaces in the URL's?
  4. H1 and spaces
    I don't remember how to avoid the spaces before and after Header tags. Anybody to remind me? Thanks!
  5. Spaces in the URL
    Is it bad to have spaces in the URL? I'm using a CMS and there's only so much I can do. Some of the URLs will have a space but in the URL appearing...

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Welsh Yiddish