LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Register
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 11-19-2005, 06:57 PM   #16
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31

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!
 
Old 11-19-2005, 08:40 PM   #17
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
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.
 
Old 11-21-2005, 05:01 AM   #18
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516

Rep: Reputation: 240Reputation: 240Reputation: 240
you don't need an ls

Code:
for file in *.tgz ; do
   etc ...
done
 
Old 11-21-2005, 04:48 PM   #19
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
Ah... Good point bigearsbilly...
 
  


Reply



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
No loop# SeaSharp Linux - Newbie 3 09-06-2005 08:14 PM
WHILE LOOP in 'C' ']['HeBroken Programming 4 10-29-2004 01:42 AM
while-loop Thomas23 Programming 4 05-24-2004 03:35 PM
for loop klfreese Programming 16 08-11-2003 11:09 AM
help with the following C loop ..... purpleburple Programming 12 08-06-2002 10:32 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:22 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
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