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 > Shell Programming and Scripting
.
google unix.com



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

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
Checking cp progress MarGur UNIX for Dummies Questions & Answers 0 05-15-2007 04:13 PM
progress bar sakthi.abdullah UNIX for Advanced & Expert Users 4 12-08-2006 05:23 AM
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
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-21-2008
mirusnet's Avatar
mirusnet mirusnet is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 146
Progress

Maybe someone know how to create something like "*".
If someone uses Gentoo he must see this while emerge utility preparing an update.
I mean the symbol "/" spins.
  #2 (permalink)  
Old 01-21-2008
adderek adderek is offline
Registered User
  
 

Join Date: Sep 2007
Location: Poland
Posts: 99
this should work (just fill red parts)

typeset goto_x_y=...
typeset char='/|\-'
typeset -i tick=0
while [[ create your own condition ]] ;do
print -- "${goto_x_y}${char[${tick}]}"
tick=$tick+1
[[ $tick -gt 3 ]] && tick=0
done

Usually you should be able to use backspace instead of goto_x_y

I have not tested this but it should work.
  #3 (permalink)  
Old 01-21-2008
mirusnet's Avatar
mirusnet mirusnet is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 146
Very nice
All screen in lines
Also, did you mean printf?
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 04:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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