Reputation
6,839
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
17 45
Newest
 Enlightened
Impact
~388k people reached

Mar
26
revised Print awk's current new line character
edited tags
Mar
23
revised How to sort the string which combined with string + numeric using bash script?
Only works with GNU sort
Mar
23
comment How to sort the string which combined with string + numeric using bash script?
@ErnestA: You are right, this is GNU sort specific solution. Added a note.
Mar
18
revised sum columns based on matching fields
Brief explanation added
Mar
18
answered sum columns based on matching fields
Mar
4
awarded  Nice Answer
Mar
3
answered How do I replace the last occurrence of a character in a string using sed?
Feb
18
answered Transposing rows and columns
Nov
25
awarded  Enlightened
Nov
25
awarded  Nice Answer
Nov
13
comment Output part of each line to a separate file
@StéphaneChazelas: I see, and it has been there for a while. I did not know about this, thanks for telling me.
Nov
13
comment Output part of each line to a separate file
@glennjackman: This was just an interesting alternative way of doing it. If the input is large, awk is probably the most efficient tool to use. You are of course right about not spawning sh for each line, I have added the pipe-option as an alternative.
Nov
13
comment Output part of each line to a separate file
If there are many lines, all available file descriptors will be used, so you should probably add a close($1".seq").
Nov
13
revised Output part of each line to a separate file
A more efficient alternative added
Nov
12
answered Output part of each line to a separate file
Oct
27
comment Print a line only if the next line does NOT contain a particular match
@lmmx: It is needed because otherwise the capture group needs to be escaped, and the same goes for the + quantifier.
Oct
23
comment How can I do the `history` command and not have line numbers so I can copy multiple line commands?
@Fedir: Interesting, which shell is this under?
Oct
15
awarded  bash
Oct
1
reviewed Approve Extract/print every 3rd occurence of pattern
Sep
30
awarded  Explainer