Reputation
115,533
Next tag badge:
97/100 score
36/20 answers
Badges
18 145 291
Newest
 Nice Answer
Impact
~4.4m people reached

4h
answered How can I count the number of whitespace characters in a file?
5h
answered To count number of matches in a mega string quickly
5h
comment To count number of matches in a mega string quickly
How about LC_ALL=C grep -ao CDA | wc -l?
5h
revised Filtering invalid utf8
simplified
11h
revised list processes belonging to a network namespace
added 449 characters in body
12h
revised list processes belonging to a network namespace
added 227 characters in body
12h
revised list processes belonging to a network namespace
added 227 characters in body
13h
comment list processes belonging to a network namespace
@vyom, you must have a 3.2 kernel. I confirm it doesn't work there.
13h
revised list processes belonging to a network namespace
added 196 characters in body
13h
comment list processes belonging to a network namespace
The error about /proc/self is to be expected when using sudo or a shell that doesn't expand globs in the process they're executing the command in. I've edited the answer to avoid it (but that wouldn't prevent listing the pids)
13h
comment list processes belonging to a network namespace
@vyom, does grep /run/netns /proc/self/mountinfo report anything? What kernel version are you using (uname -rs)?
13h
revised list processes belonging to a network namespace
exclude /proc/self which would be redundant.
13h
comment list processes belonging to a network namespace
@vyom, yes from the top level pid and mount namespace (though I suppose you could create netns'es in other mount namespaces which would void that command).
13h
comment What's the 'right' format for the HTTP_PROXY environment variable? Caps or no caps?
@Gilles, lynx uses CERN's libwww where that feature probably comes from (seems to be appearing in 2.15). It's not impossible that the lynx developers contributed that feature back though.
14h
answered list processes belonging to a network namespace
1d
comment Add a newline into a filename with `mv`
@ and , would be more harmless than - (like in first position) or %. All those recomendations are mainly to work around bugs in some applications (that break on filenames that are otherwise valid from the OS point of view). It feels backward to ask people to not use those characters rather than fixing their bugs.
1d
awarded  Nice Answer
1d
revised Detecting the newest file in a directory
added 28 characters in body; edited tags
1d
comment Bash: increment a variable in a while loop?
Related: Why is using a shell loop to process text considered bad practice?
1d
answered Bash: increment a variable in a while loop?