• We should now be fully online following an overnight outage. Apologies for any inconvenience, we do not expect there to be any further issues.

notfred's geeky trivia question of the day.

Page 3 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Reel

Diamond Member
Jul 14, 2001
4,484
0
76
Originally posted by: notfred
Originally posted by: ReelC00L
*nix?

That's basically right, but can you tell me why? There's been enough blind guessing....

your search is matching "(wildcard) + x" which led me to believe that your reference to an OS of $x was the same basic format and the only ones I can think of that end in x are the *nix family: Linux, Unix, Xenix, etc.
 

BooGiMaN

Diamond Member
Jul 5, 2001
7,955
0
0
dude just give up the answer, all your going to get from now on is blind guessing on some very obscure piece of trivia
 

Ciber

Platinum Member
Nov 20, 2000
2,531
30
91
Originally posted by: caramel
i'm of the fairer sex, help me out here!

Fairer sex?????? BUAHahahahaha.......hahaha....... You're trying to be funny right???? hahahaha.......women fair??? ahahahahaha......lolololol

 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Sine no one really got it, and I'm leaving soon:

$ is an anchor in regular expressions. If you're using some application that uses regular expressions, you can search for 'stuff' to look for the word stuff, or '^stuff' to look for lines that begin with the word stuff, or 'stuff$' to look for lines that end with the word stuff. Similarly, you can search for lines begiining with 'x' by using '^x' and lines ending with 'x' by using 'x$'. Hence, x$ matches anything that ends with x, which is basically the same set of unixes that *nix refers to: unix, linux, xenix, irix, etc.
 

rootaxs

Platinum Member
Oct 22, 2000
2,487
0
71

Apparently all those who tried guessing the right answer
rolleye.gif


Hey Notfred, thanks for the explanation :)
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Originally posted by: notfred
Sine no one really got it, and I'm leaving soon:

$ is an anchor in regular expressions. If you're using some application that uses regular expressions, you can search for 'stuff' to look for the word stuff, or '^stuff' to look for lines that begin with the word stuff, or 'stuff$' to look for lines that end with the word stuff. Similarly, you can search for lines begiining with 'x' by using '^x' and lines ending with 'x' by using 'x$'. Hence, x$ matches anything that ends with x, which is basically the same set of unixes that *nix refers to: unix, linux, xenix, irix, etc.

bah, i was just about to post the answer too, and i actually knew it ;)

basically, *nix isnt a generic enough term since linux is not *nix, it is *nux, but since most unixes end with x, x$ matches them all. the regex wasnt apparent to me at first, i was thinking "x plus some text", where $ could just be whatever, a variable variable, whatever :p
 

Staples

Diamond Member
Oct 28, 2001
4,953
119
106
Hmm, that is what I was looking for the other day. The ^ character always stays with me because I use "ls -la|grep ^d" all the time but I wanted to know what the special char to find characters at the end of lines.
 

melly

Diamond Member
Feb 5, 2002
3,612
0
0
Originally posted by: Ciber
Originally posted by: caramel
i'm of the fairer sex, help me out here!

Fairer sex?????? BUAHahahahaha.......hahaha....... You're trying to be funny right???? hahahaha.......women fair??? ahahahahaha......lolololol

i stole it from yllus. :D now *there's* a funny guy!
 

StageLeft

No Lifer
Sep 29, 2000
70,150
5
0
Originally posted by: notfred
Sine no one really got it, and I'm leaving soon:

$ is an anchor in regular expressions. If you're using some application that uses regular expressions, you can search for 'stuff' to look for the word stuff, or '^stuff' to look for lines that begin with the word stuff, or 'stuff$' to look for lines that end with the word stuff. Similarly, you can search for lines begiining with 'x' by using '^x' and lines ending with 'x' by using 'x$'. Hence, x$ matches anything that ends with x, which is basically the same set of unixes that *nix refers to: unix, linux, xenix, irix, etc.
Ah, see in a windows programming context $ doesn't mean that!

Anyway I still think it's windows xp. Or dos 5.0

 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: Skoorb
Ah, see in a windows programming context $ doesn't mean that!

hahaha, I'd love to hear your explaination of what $ means in "a windows programming context" :p
 

KingNothing

Diamond Member
Apr 6, 2002
7,141
1
0
Originally posted by: notfred
Originally posted by: Skoorb
Ah, see in a windows programming context $ doesn't mean that!

hahaha, I'd love to hear your explaination of what $ means in "a windows programming context" :p

It means Micro$oft. And you've been spending WAY too much time with perl if you're coming up with stuff like this at 6pm on a Friday night. ;)
 

StageLeft

No Lifer
Sep 29, 2000
70,150
5
0
Originally posted by: notfred
Originally posted by: Skoorb
Ah, see in a windows programming context $ doesn't mean that!

hahaha, I'd love to hear your explaination of what $ means in "a windows programming context" :p
Many of the VB [that's Visual Basic - something that microsoft made - they also made windows, so I think this counts] functions that deal with strings come in two flavors - one that ends with a dollar sign ("$") and one that doesn't. An example is Left$ and Left. The function that ends with the dollar sign returns a variable of type String, whereas the other function (without the dollar sign) returns a variable of type Variant.

See? Just because $ means something to you doesn't mean it means the same thing to everyone else. So really your original question is somewhat meaningless.
 

amdskip

Lifer
Jan 6, 2001
22,530
13
81
woo hoo, found your phone number/name

nice site btw, no I won't be calling you