Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I need to get spaces at the end of a fixed file.I will explain my problem briefly. I have a file of length 133, one record format will be ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    1

    How to get spaces at the end of a fixed file

    Hi,
    I need to get spaces at the end of a fixed file.I will explain my problem briefly.
    I have a file of length 133, one record format will be

    <first character><spaces><spades><spaces><spaces><second charactes>
    eg: simbu trouble

    In this case the end of line character will be after "trouble" ie after my second character. In some case my second character is also spaces(no values).
    so the record will be like this

    eg:simbu

    The end of line character will be just after "simbu" but my requirement is that it should always end after the second character even if there are no values for the second character.


    Is there a way to achieve this, please help me.If the information is not enough i can give u more info.

    Thanks in advance
    Simbu

  2. #2
    Linux User
    Join Date
    Aug 2006
    Posts
    458
    what is it you are wanting to do? show your output file if any.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...