LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2003, 03:58 PM   #1
phoeniXflame
Member
 
Registered: Feb 2003
Location: Somewhere, UK
Distribution: Slack, OpenBSD, Debian, SuSE
Posts: 189

Rep: Reputation: 30
echo


hi guys

I'm writing a shell script and I wanted to include some ASCII art I've created, but when using the echo command to display it, it seems to cut out multiple spaces which kinda screws up the picture I did read somewhere that if you place " around the line it stops it removing them, but it just dosnt seem to work , heres the code, thanks in advance !

Code:
LOGO="+==============================================================+\n
|                                           ____               |\n
|                                           |__|               |\n
|     __________ ____      ______             ___      ___     |\n
|    /   _   \ | |   \    /      \---\   /--| |  \    /  /     |\n
|    |  |_|  | |_|   |------\ ___|    \  |  |---  \  /  /      |\n
|    |       |       |   _  | |__      \ |  |  |\  \/  /       |\n
|    |    ___/       |  |_| |  __|  |\  \|  |  | \    /        |\n
|    |   | |   |-|   |      | |__   | \     |  | /    \        |\n
|    |   | |   | |   |------/    |__|  \____|  |/  /\  \       |\n
|    |   | \---- ----/    \______/         |___|  /  \  \      |\n
|    \___/                                    /  /    \__\     |\n
|                                            /__/              |\n
|                                                              |\n
+==============================================================+\n"

#display logo
echo -e $LOGO
that probably dosnt look right on the forums, but you get the idea
 
Old 03-02-2003, 04:16 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
If you use the <tab> key when making these ascii images it can screw it up sometimes. I ran into this myself once. Are you using the <tab> key while creating this?
 
Old 03-02-2003, 07:25 PM   #3
phoeniXflame
Member
 
Registered: Feb 2003
Location: Somewhere, UK
Distribution: Slack, OpenBSD, Debian, SuSE
Posts: 189

Original Poster
Rep: Reputation: 30
hi, thx for replying, no I didnt use the tab key once when creating it, I thought that might be what it was so I purposly didnt use tabs, only spaces, heres what I get on my sceen when running the script ...

Code:
+==============================================================+
 | ____ |
 | |__| |
 | __________ ____ ______ ___ ___ |
 | / _ \ | | \ / \---\ /--| | \ / / |
 | | |_| | |_| |------\ ___| \ | |--- \ / / |
 | | | | _ | |__ \ | | |\ \/ / |
 | | ___/ | |_| | __| |\ \| | | \ / |
 | | | | |-| | | |__ | \ | | / \ |
 | | | | | | |------/ |__| \____| |/ /\ \ |
 | | | \---- ----/ \______/ |___| / \ \ |
 | \___/ / / \__\ |
 | /__/ |
 | |
 +==============================================================+
as you can see, its removed all multiple spaces and replaced them with single ones

Last edited by phoeniXflame; 03-02-2003 at 07:28 PM.
 
Old 03-02-2003, 08:23 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Gidday!

Try
Code:
echo "$LOGO"

Cheers,
Tink
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Echo onelung02 Slackware 6 08-26-2005 04:50 PM
Kphone echo (echo echo) scabies Linux - Software 0 10-18-2004 02:59 PM
echo chrismiceli Linux - General 4 04-09-2003 05:25 PM
Echo /devPrinting doesn't work, echo /usb/lp0 works, Testpage works, Printing doesn't Hegemon Linux - General 3 08-15-2002 01:13 PM
Echo linux_freak Linux - General 1 06-05-2001 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration