Reputation
119,070
Next tag badge:
98/100 score
37/20 answers
Badges
19 150 297
Newest
 Nice Answer
Impact
~4.8m people reached

1h
comment Extract columns of a string using grep
grep is the tool to print the lines that match a regex, (that's where the name comes from), not to extract data from the lines (though some implementations now have a -o option that can do it to some extent).
1h
revised Concatenate table without header
added 206 characters in body
1h
comment Concatenate table without header
The tail implementations like GNU's that support passing more than one file argument generally also then output their own header to identify the files. With GNU tail, you can use -q to prevent that.
1h
comment Concatenate table without header
@steve, that solution outputs files starting at their second line. You can then append that to a file that already contains the header.
2h
answered Concatenate table without header
2h
revised How could I run -exec on find command after | grep
added 153 characters in body
2h
answered How could I run -exec on find command after | grep
3h
revised Disable glob qualifiers in zsh
formatting
3h
answered zsh - complex filename matching
4h
comment How to passively capture from Unix domain sockets (AF_UNIX socket monitoring)?
Beside strace, you can also look at auditd and systemtap.
4h
revised Who's got the other end of this unix socketpair?
added 52 characters in body
4h
comment How to passively capture from Unix domain sockets (AF_UNIX socket monitoring)?
See Capture the X11 protocol's traffic
18h
revised Getting all files that have been modified on a specific date
print expands escape sequences without -r.
1d
answered How to use cp command in bash script to copy files with spaces ans $ characters in it?
1d
comment Stop writing to a capture file after it reaches a specific size
or just dumpcap (which tshark calls internally) if all you do is dumping the traffic in a file.
1d
revised Using bash variables in perl command in bash script
added 516 characters in body
1d
comment Using bash variables in perl command in bash script
Yes, there's also the problem of the quotes, you'd need "$ENV{\"VAR\"}" though "$ENV{VAR}" would be enough, see my answer.
1d
answered Using bash variables in perl command in bash script
1d
revised Get last set of non-empty lines
4 years later, hijack this answer to give the canonical and more correct answer as suggested by Gilles in comments.
1d
comment Stop writing to a capture file after it reaches a specific size
Do you want to stop the capture or bring the interface down after those 60mb? Is that 1048576 * 60 bits of the ethernet frames on the wire?