Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2008
    Posts
    2

    Unanswered:

    I would like to know what is the command to add blank spaces.

    for example,...

    I can display like this...

    Apr 2 11:00

    But, I just want ....

    Apr 2 11:00

    So, I should add blank space between "Month" and "Day"...

    How can I display it ?

    Please give me your hands...



    if [ $PREDAY -lt 10 ] ; then
    TEMP=" "
    PRETIME="$PREMON $TEMP $PREDAY $PREHOUR:$PREMIN"
    else
    PRETIME="$PREMON $PREDAY $PREHOUR:$PREMIN"
    fi

    I couldn't do it while using this unix shell scripts....;;;
    Last edited by river lee; 04-02-08 at 23:29.

  2. #2
    Join Date
    Apr 2008
    Posts
    2
    A=1
    B=2

    echo $B" "$A
    2 1

    C=`echo $B" "$A`; echo $C
    2 1

    echo $B" "$A >> a ; cat a
    2 1

    C=`cat a` ; echo $C
    2 1


  3. #3
    Join Date
    May 2005
    Location
    South Africa
    Posts
    1,365
    Provided Answers: 1
    Code:
    a=1 b=2          
    echo '1234567890';echo "$a $b";echo "$a  $b"
    1234567890
    1 2
    1  2

Posting Permissions

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