The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
echo problem tontal Shell Programming and Scripting 1 11-16-2006 03:36 AM
Problem with echo for var, padded with spaces videsh77 Shell Programming and Scripting 2 05-26-2005 12:27 PM
echo variable problem sabina Shell Programming and Scripting 6 02-24-2005 12:15 PM
echo problem abrd600 Shell Programming and Scripting 5 02-14-2005 03:24 PM
counter / increment problem within echo stmt blaze UNIX for Dummies Questions & Answers 2 02-08-2001 08:59 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 12-29-2001
Cameron's Avatar
Registered User
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 490
Question `echo` problem.

Have the following lines in a script:
Code:
  echo "-----------------------------------------------"\
       "---------------------" >> $xdfrpt
  echo "-   Date  -    - / - /stand - /u   - /u1  - /u2  -"\
       "/x1  - /x2  - /x3   -" >> $xdfrpt
  echo "-----------------------------------------------"\
       "---------------------" >> $xdfrpt
And it produces the following:
Code:
----------------------------------------------- ---------------------
-   Date  -    - / - /stand - /u   - /u1  - /u2  - /x1  - /x2  - /x3   -
----------------------------------------------- ---------------------
The question I'd like answered is how do I aviod the `gaps` appearing in the line?
Forum Sponsor
  #2  
Old 12-29-2001
Cameron's Avatar
Registered User
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 490
Wink Solved ...

Solved with the following:
Code:
  echo "-----------------------------------------------\c" >> $xdfrpt
  echo "---------------------" >> $xdfrpt
  echo "-   Date  -    - / - /stand - /u   - /u1  - /u2  -"\
       "/x1  - /x2  - /x3" >> $xdfrpt
  echo "-----------------------------------------------\c" >> $xdfrpt
  echo "---------------------" >> $xdfrpt
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0