LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 08-03-2011, 09:10 AM   #1
DoME69
Member
 
Registered: Jan 2008
Posts: 147

Rep: Reputation: 15
echo argument at same line at cshell


Hi...

i have variable that every 5 minutes is change
how can i echo this variable at same line same position?
 
Old 08-04-2011, 03:50 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
In practice you have to freely move the cursor position before echoing something. You can do this by means of the tput command, e.g.
Code:
tput cup 4 5
moves the cursor to row 4 column 5. Hope this helps.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] how to echo an '-n' without a new line? paliga Linux - Newbie 8 10-20-2010 08:44 AM
Echo every other line yitzle Linux - Software 19 08-03-2010 11:36 AM
how to remove new line in bash using echo packets Programming 9 11-24-2009 10:00 PM
command line argument in c vipin_jss Linux - Newbie 6 05-11-2009 07:47 PM
echo on a new line does not work B-Boy Linux - Newbie 2 06-02-2008 10:54 AM


All times are GMT -5. The time now is 04:47 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration