5,939 reputation
1241
bio website toggle.be/~ta
location Denmark
age 37
visits member for 2 years, 6 months
seen yesterday

I'm trained in computer science engineering, but have a wide range of other interests as well.


Oct
15
awarded  bash
Oct
1
reviewed Approve suggested edit on Extract/print every 3rd occurence of pattern
Sep
30
awarded  Explainer
Aug
29
comment How to copy rows of different files and paste column-wise?
A similar question is answered here, but with focus on shell processing.
Aug
11
comment Only return the matched string in sed
@danielsokolowski: this example uses basic regular expressions (BRE) and thus capture groups are noted with escaped parentheses. If you add -r to the above you should get an error saying "invalid reference". What version of sed are you using?
Jul
18
awarded  Enlightened
Jul
18
awarded  Nice Answer
Jun
23
comment UNIX paste columns and insert zero's for all missing values
@biobudhan: No this produces space separated columns. I updated the answer to (more correctly) use OFS when generating the table. With this change you can specify the output separator by setting OFS on the command line, either awk -v OFS='\t' -f merge.awk FILES or as a post argument awk -f merge.awk OFS='\t' FILES.
Jun
23
revised UNIX paste columns and insert zero's for all missing values
Use OFS when generating the table
Jun
22
comment Remove comma between the quotes only in a comma delimited file
@CocoaEv: It executes { print $0 }. I added that to the explanation as well.
Jun
22
revised Remove comma between the quotes only in a comma delimited file
Embellished the explanation
Jun
16
awarded  Constituent
Jun
14
awarded  sed
Jun
13
answered How to use the sed command to only show the first column and last column in a text file
Jun
12
comment UNIX paste columns and insert zero's for all missing values
@biobudhan: Note that this solution does not preserve the columns, e.g. numbers from the pqr record will always end up in the first column no matter the order of the file arguments. This may or may not be a problem depending on what the you want.
Jun
12
answered UNIX paste columns and insert zero's for all missing values
Jun
11
awarded  Informed
Jun
9
awarded  Caucus
May
28
awarded  Nice Answer
May
28
answered can I make awk cut its input according to '\n'?