Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-20-2004, 03:45 AM   #1
LQ Newbie
Registered: Feb 2004
Posts: 29

Rep: Reputation: 15
Linux and $ sign

i have a little Problem with the $ sign... How can i comment it out to use it as normal sign?
For example : nslookup ws$signum
here it would only look for ws becaus the variable $signum is empty...

So i cant change the name of the targethost and it includes a $ but how can the bash know when to look
for an variable or when to use it as normal character???

A totally n00b Linux user ;-)
Old 02-20-2004, 04:25 AM   #2
Registered: Feb 2004
Distribution: Debian
Posts: 62

Rep: Reputation: 15
I know you probably want a straight answer to this, but I'm not gonna give you one.
Do a google on: Unix "special characters" and learn all you need to know.
Old 02-20-2004, 06:19 AM   #3
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30

try nslookup 'ws$signum'
or nslookup `ws$signum`

cant remember wich one right now

Old 02-20-2004, 09:22 AM   #4
Registered: Oct 2003
Distribution: FC4/5 & RHEL4
Posts: 133

Rep: Reputation: 15
Or you can probably use the escape character '\' like so

nslookup ws\$signum
Old 03-07-2004, 08:52 AM   #5
LQ Newbie
Registered: Feb 2004
Posts: 29

Original Poster
Rep: Reputation: 15
ah now i got the problem...
my fault is that the network query wich is incoming is blah$blah and i dont have the possibility to change it to blah\$blah or `blah$blah` the linux machine would do it the right way with these comments but the windows machines ask the "wrong" way....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sign the World of Warcraft on Linux petition! Gormless Linux - Games 46 06-30-2007 01:21 PM
sign on invisible in gaim - NOT invi after sign on saravkrish Linux - Software 7 09-12-2005 11:55 PM
how to sign a jar file on Linux moe2266 Linux - Newbie 1 01-23-2004 04:10 PM
Please sign this! Shockwava player for Linux UltimaGuy General 3 01-21-2004 08:32 AM
linux sign eye Linux - Software 3 05-24-2003 10:20 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration