Reputation
7,654
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
20 48
Newest
 Yearling
Impact
~639k people reached

Apr
13
awarded  Yearling
Apr
4
awarded  Enlightened
Apr
4
awarded  Nice Answer
Mar
14
awarded  Necromancer
Feb
7
reviewed Approve How do I run a command in a different tty?
Dec
16
revised concatenate n lines with sed
Specify GNU sed and GNU awk
Dec
16
answered concatenate n lines with sed
Dec
16
answered sort file but keep pairs of lines together
Dec
9
comment Print a line only if the next line does NOT contain a particular match
@Wildcard: You are right, but after reviewing the OP's question and the grep like output he is after, it is more appropriate to remember the whole line and output that at the end.
Dec
9
revised Print a line only if the next line does NOT contain a particular match
Print what the OP actually requested
Dec
6
revised I am trying to fetch the logs for last five minutes through a script
Better formatting
Dec
6
comment Is there a simple command for outputting tab-delimited columns in bash?
@bodacydo: I have added an excerpt from my column manual, that describes the -t flag. The foo on the command line is the input file, if it is omitted, standard in will be used instead. In order to determine correct column widths, column will buffer the whole input before returning the result.
Dec
6
revised Is there a simple command for outputting tab-delimited columns in bash?
Added excerpt about -t from column manual
Dec
2
comment Output part of each line to a separate file
That is much better. I get a 2 times speedup with this version: yes ATGC | fold -w1 | head -n6400000 | shuf | tr -d \\n | fold -w64.
Dec
2
comment Output part of each line to a separate file
I think the generation speed of your test harness is bound by the random number generator. You can make it faster by using every number it gives or generate an homogeneous distribution, e.g.: paste <(yes A) <(yes T) <(yes G) <(yes C) | head -n1600000 | tr '\t' '\n' | shuf | tr -d \\n | fold -w64 | cat -n > infile.
Nov
24
revised Remove comma between the quotes only in a comma delimited file
Added proper language highlighting
Nov
19
reviewed Approve When will Debian switch to Linux 4.x? ( and support the live kernel patching ? )
Nov
5
awarded  Nice Answer
Sep
24
awarded  Nice Answer
Sep
16
comment Split a set of data to massives and find maximum for each
Surely the first output line should be: 2 0.23?