nyankoframe: (Default)
nyankoframe ([personal profile] nyankoframe) wrote2006-08-31 10:19 pm
Entry tags:

There are too many llamas on my laptop...

So much so that cat errored out too. :P


nyanko@LupinIX:~$ sudo cat /dev/mem | strings | grep llama | wc -l
cat: /dev/mem: Bad address
332


For those people who don't know what that means, here's an explanation:

"But to explain it very simply, what that command does is to dump the computer's memory to the screen (cat), get all the text from the dump(strings), find all lines which have llama in them (grep) and then count the number of lines (wc).

So there were 332 lines with "llama" in them in my laptop's memory. ^_^;"

[identity profile] testing4l.livejournal.com 2006-09-01 12:27 pm (UTC)(link)
BTW, you could've just done sudo grep -c llama /dev/mem. 8)

and again, that's the *substring* llama, not necessarily llama. 8)

[identity profile] nyankoframe.livejournal.com 2006-09-01 01:02 pm (UTC)(link)
So noted. :P I didn't think of that syntax, though.

Off-topic, your display picture is cute. <3

[identity profile] testing4l.livejournal.com 2006-09-01 10:04 pm (UTC)(link)
To be fair, I didn't think of it until I started typing it.

That's Meg when she was a bit younger. Surely you've seen our giant collection of pictures of the two of them?