5,759 reputation
1239
bio website toggle.be/~ta
location Denmark
age 37
visits member for 2 years, 3 months
seen Jul 23 at 19:45

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


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'?
May
21
answered How to remove duplicate lines with awk whilst keeping empty lines?
May
4
awarded  Nice Answer
Apr
13
awarded  Yearling
Apr
7
awarded  Nice Answer
Apr
3
comment Merge 2 files based on all values of the first column of the first file
join can still work if the line order is not important, see my answer below.