Reputation
21,674
Next tag badge:
97/100 score
27/20 answers
Badges
2 26 76
Newest
 Nice Answer
Impact
~1.7m people reached

  • 0 posts edited
  • 6 helpful flags
  • 1,994 votes cast
21h
answered Is there any risk of a race condition when runing ps?
1d
comment How can I count the number of whitespace characters in a file?
@Alison - your method might seem indirect, but I don't think that's the case. No matter how you do this task, you have to have a program that examines every character (every byte) in the file. There's no short cuts for that I can see. "Deleting" isn't really the case, as tr actually just passes all whitespace characters down the pipe. It's just selective about what characters it passes, rather than "deleting" anything.
Jun
25
comment Can tarring files improve compression?
The "random" file contents are a problem. They're incompressible. Use two different large text files to get a better idea. A related idea here is "normalized compression difference". You might take a look at ims.cuhk.edu.hk/~cis/2005.4/01.pdf to see what kind of problems you can encounter doing this kind of testing.
Jun
25
comment Comparing Oracle version in bash script
@triplus - Glad I could help. The custom is to upvote good answers, and mark the best or correct answer.
Jun
24
answered Comparing Oracle version in bash script
Jun
24
revised How to check if NTPD updates machine's time successfully using shell?
Change a wrong edit (MILLIseconds) back to seconds: ntpdc uses seconds, ntpq outputs in msec. Look at a man page before editing, folks.
Jun
23
comment Wifi cuts out after some time
In addition to the Wi-fi chipsets of both laptop and router, you should mention the age of both laptop and router. I've read people speculating that "low noise amplifiers" wear out when they age. I've certainly experienced the symptoms you describe, but all of my gear is either used to hand-me-downs, so I never experienced it new.
Jun
22
comment Extract just the hostname and port number from tnsnames.ora file
There may not be a good way to reliably get the Service Identifier without a full parse of the descriptions. I don't see a good way to shortcut a grammar-based solution. The only reason my awk-based solution to finding the "HOST" value works is that I could make name/value pairs out of the descriptions.
Jun
22
answered Linux process - messages from kernel
Jun
22
answered Extract just the hostname and port number from tnsnames.ora file
Jun
22
comment Kernel driver for wireless adapter not in use
@TheDerkus - I've never set up or used a dual boot machine, and I only use Windows at work. I would guess that you could mount the Windows disk when you've booted from a USB drive, but I don't know for sure. That's really another question.
Jun
21
answered Kernel driver for wireless adapter not in use
Jun
20
comment How can I shorten strings shown in the i3status bar?
@pleasedeleteme - I think you're out of luck. If you read the i3status man page, the author(s) explicitly write that they didn't want to reimplement job control, so there's no way to do what you ask. Sorry.
Jun
20
answered How can I shorten strings shown in the i3status bar?
Jun
19
revised Sum of alternate values in a column using either sed or nawk
"teh" -> "the"
Jun
19
answered Sum of alternate values in a column using either sed or nawk
Jun
19
answered Unable to use nmap
Jun
19
awarded  Nice Answer
Jun
18
answered How to edit shell prompt to show time?
Jun
18
comment Why does the terminal echo keystrokes when commands are running?
Since the rest of the TTY system seems like a good design, I'm guessing this feature is there on purpose, and that purpose is to allow type-ahead. PDP-11s probably took a lot of time waiting for disk or tape input, so type-ahead would have been a real benefit.