Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google site



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-09-2009
Registered User
 

Join Date: Jan 2009
Posts: 13
Draw a Horizontal and Vertical line on UNIX

I want to draw a horizontal and vertical line on Unix. Please suggest some solution.
Sponsored Links
  #2 (permalink)  
Old 02-09-2009
Registered User
 

Join Date: Aug 2008
Posts: 92
Please give more details...

There are many ways to do this, one could open Open Office Draw or Gimp and draw a horizontal/vertical line. One could create a c++ application that draws a line (vertical/horizontal) on the screen, or many other various ways one could "draw a line" in Unix.

There is just no way to get what you are trying to do from the lines you wrote.
  #3 (permalink)  
Old 02-09-2009
Registered User
 

Join Date: Jan 2009
Posts: 13
I want a graph look like

12:00 3:00
Line |_________|

suggestion some solution
  #4 (permalink)  
Old 02-09-2009
Registered User
 

Join Date: Aug 2008
Posts: 92
Where is the data for the graph coming from?

Are you just manually creating a graph in a graphic application?

Are you asking for a log analysis tool that will create a graph?

There is really no information here to know what you want. I am sorry really, but without more information I doubt anyone can help you as we do not fully understand what you need.
  #5 (permalink)  
Old 02-09-2009
angheloko's Avatar
Registered User
 

Join Date: Jul 2008
Location: Philippines
Posts: 125
Yeah, I think you should need to be more specific and detailed with your question. But if all you need to do is print a simple horizontal/vertical line then you can try the ff.:


Code:
yes "|" | head -100 # Vertical line

or


Code:
yes "_" | head -100 # Horizontal line

or


Code:
while (( i <= 100 )); do
printf "_"
(( i = i + 1 ))
done

or


Code:
while (( i <= 100 )); do
printf "|"
(( i = i + 1 ))
done

  #6 (permalink)  
Old 02-09-2009
Registered User
 

Join Date: Jan 2009
Posts: 13
Thanks angheloko, tell me one more thing


12:00

Line |__________|

How to write 12:00 on 1st spot and 3:00 on 2nd
  #7 (permalink)  
Old 02-09-2009
angheloko's Avatar
Registered User
 

Join Date: Jul 2008
Location: Philippines
Posts: 125


I'm not sure what you're getting at or what your desired output really is but if you just need to display:


Code:
12:00 3:00
Line |_________|

Then just:


Code:
echo "12:00 3:00"
echo "Line |__________|"

Like I said earlier, you need to post more details man.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Is it possible to draw table/matrix using shell script? jakSun8 Shell Programming and Scripting 2 03-18-2009 10:53 PM
plotting a straight horizontal line wadhwa.pooja Shell Programming and Scripting 2 02-06-2009 12:20 PM
draw graphics to stdout in solaris shivamasam Solaris 0 02-04-2009 02:56 AM
help for saving vertical datas to horizontal with "awk" or "cut" mercury Shell Programming and Scripting 3 02-03-2009 06:06 PM
converting horizontal line to vertical line vasikaran UNIX for Dummies Questions & Answers 3 07-01-2005 02:10 AM



All times are GMT -4. The time now is 01:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0