The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to have a cp progress bar? wrapster UNIX for Advanced & Expert Users 1 05-21-2008 02:56 AM
Progress mirusnet Shell Programming and Scripting 2 01-21-2008 11:26 AM
Checking cp progress MarGur UNIX for Dummies Questions & Answers 0 05-15-2007 04:13 PM
TAR- Progress bar? dicko44 Shell Programming and Scripting 1 09-01-2006 08:11 AM
progress bar inquirer Shell Programming and Scripting 3 11-26-2002 11:22 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-07-2006
sakthi.abdullah sakthi.abdullah is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 22
progress bar

Hi all,
I want to print # like that in a progress bar..
For e.g We can notice that during installation ... but,how to do that?


Thnx,
sakthi.
  #2 (permalink)  
Old 12-07-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,928
If you already have access to the information needed to estimate progress, you can use echo -n "#" to print # characters without a trailing newline.
  #3 (permalink)  
Old 12-07-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
If you aren't using bash/Linux, use
Code:
echo "#\c"
  #4 (permalink)  
Old 12-07-2006
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,407
printf "#" is more portable
  #5 (permalink)  
Old 12-08-2006
sakthi.abdullah sakthi.abdullah is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 22
got it

Got it!
i=40
while [ $i -ge 0 ]
do
echo "#\c"
sleep 0.004
i=`expr $i - 1`
done

Thnx for all
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 On




All times are GMT -4. The time now is 10:31 AM.


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-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0