6,069 reputation
1342
bio website toggle.be/~ta
location Denmark
age 37
visits member for 2 years, 8 months
seen Dec 18 at 23:44

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


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.
Apr
3
answered Merge 2 files based on all values of the first column of the first file
Mar
25
comment How to find and replace a field column value in UNIX
@MeghanaPrakash: Did you try with the latest version? I recently added an ending anchor as suggested by Stephane.
Mar
25
revised How to find and replace a field column value in UNIX
Handle overlapping matches
Mar
25
comment How to find and replace a field column value in UNIX
@StephaneChazelas: Interesting, this seems to be because of overlapping matches. It can be fixed by looping, as you have already found.
Mar
25
comment How to find and replace a field column value in UNIX
@StephaneChazelas: good point, I added a terminal anchor as well, thanks.
Mar
25
revised How to find and replace a field column value in UNIX
Handle elements like |123-abc|