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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
11-19-2005, 06:57 PM
|
#16
|
|
Member
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419
Original Poster
Rep:
|
Just for the sake of making my script output more pretty, is there a way to make "echo" commands print out in color?
Also, if I have a process running that takes a long time how would I add something such as moving "..." or "****" that shows the script is still running.
This isn't important. My script is doing what I want it to do. I'm just thinkig of the 'smile' factor. Thanks again!
|
|
|
|
11-19-2005, 08:40 PM
|
#17
|
|
Member
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987
Rep:
|
not very technical, but this is what I do
Code:
echo "moving $FILE to $DESTINATION"
mv $FILE $DESTINATION
you may want to look at this link
http://www.edoceo.com/liber/linux-bash-shell.php
edit added later//
I found this example
Code:
echo -e '\E[47;34m'"\033[1mthis is cool\033[0m"
Last edited by shanenin; 11-19-2005 at 08:43 PM.
|
|
|
|
11-21-2005, 05:01 AM
|
#18
|
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
you don't need an ls
Code:
for file in *.tgz ; do
etc ...
done
|
|
|
|
11-21-2005, 04:48 PM
|
#19
|
|
Member
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419
Original Poster
Rep:
|
Ah... Good point bigearsbilly... 
|
|
|
|
All times are GMT -5. The time now is 04:22 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|