5,429 reputation
1033
bio website toggle.be/~ta
location Denmark
age 37
visits member for 2 years
seen 22 hours ago

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


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.
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
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
comment How to find and replace a field column value in UNIX
@MeghanaPrakash: This was tested with GNU sed. Which version of sed are you using?
Nov
8
comment Is it possible to get a hardcopy in Tmux?
@Moondoggy: The semi-colons should indeed be escaped, thanks.
Oct
17
comment With grep, how can I match a pattern and invert match another pattern?
@RahulPatil: I see what you mean now, Option 1 assumes that a --\n delimiter is between each matched group, which is not there if the groups are adjacent to each other. How adjacent groups should be handled is task-specific, so this is not necessarily wrong. Option 2 does not depend on the separator and is not affected.
Oct
17
comment With grep, how can I match a pattern and invert match another pattern?
@RahulPatil: could you rephrase or add more detail to your question? I don't understand what you are asking.
Oct
15
comment Align text to center with padding on both sides
@Avidanborisov: nice solution, feel free to post it as an answer, or, if you prefer, add it to this answer
Aug
20
comment How to grep for pipe |
@StephaneChazelas: thank you for pointing this out, I was not aware of it. I corrected the text.
May
19
comment awk + paste for cleaning up PATH?
@StephaneChazelas: That is indeed a much better choice, I didn't know about that option. Thanks.
May
19
comment awk + paste for cleaning up PATH?
@PredragPunosevac: I think the backslashes are there to prevent csh from doing history expansion on the exclamation mark.
May
8
comment Why does (GNU?) parallel fail silently, and how do I fix it?
You can also add --gnu to $HOME/.parallel/config.
May
4
comment How can I separate these two outputs using awk command
-P uses Perl regular expressions.
Apr
30
comment How can I prevent 'grep' from showing up in ps results?
Same question on Serverfault and Superuser.
Apr
18
comment rsstail Not Printing Output
The command you listed works here, maybe something else is wrong?
Apr
15
comment determine shell in script during runtime
On my system this returns /, if I use NR==4 I get the path to the shells parent.
Mar
12
comment why do background jobs hang depending on the size of the output?
I cannot reproduce this, could you provide more information about the environment you are doing this in?
Feb
28
comment Expand less-than sign when using multios and brace expand
Turns out the problem was with my bindkey settings, but thank you for pushing me in the right direction, I'll award the bounty shortly.
Feb
27
comment how do i suppress seds unnessary output while using option -e?
@munish: \w is a GNU sed extension and is equivalent to this group [[:alnum:]_]. What version of sed are you using?