Computing.Net > Forums > Linux > echo question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

echo question

Reply to Message Icon

Name: mpt_dennis
Date: February 19, 2009 at 18:59:10 Pacific
OS: CentOS release 4.6
Subcategory: General
Comment:

I was looking at the system scripts under /etc/init.d. I noticed that
--------
echo $"Usage: $0 {start|stop|restart|reload|status}"
--------
why the $ before the string?



Sponsored Link
Ads by Google

Response Number 1
Name: jefro
Date: February 20, 2009 at 14:25:17 Pacific
Reply:

My guess it is a variable.

"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10


0

Response Number 2
Name: GuyA
Date: February 21, 2009 at 16:52:23 Pacific
Reply:

$"zzz" translates zzz to the character set of the current locale.

$'zzz' is scanned for ANSI C escape characters.

Guy


0

Response Number 3
Name: mpt_dennis
Date: February 22, 2009 at 18:10:33 Pacific
Reply:

So to clarify, the $ is there to make sure the string following it is displayed properly according to the locale set, right?

Thanks.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: echo question

echo question www.computing.net/answers/linux/echo-question/18168.html

A few questions for an expert www.computing.net/answers/linux/a-few-questions-for-an-expert/9492.html

hello two questions about unix scripts www.computing.net/answers/linux/hello-two-questions-about-unix-scripts/30253.html