LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 15
Linux and $ sign


Hi,
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, 03:25 AM   #2
codeape
Member
 
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, 05:19 AM   #3
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
hi

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

cant remember wich one right now

cheers
 
Old 02-20-2004, 08:22 AM   #4
_KDF
Member
 
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, 07:52 AM   #5
blubbfish
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....
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:50 AM.

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
Open Source Consulting | Domain Registration