83,688 reputation
1092199
bio website
location European Union
age
visits member for 2 years
seen 36 mins ago

Aug
8
comment Insert Lines after Multi-Line Regex Match
That assumes the <key>servers</key>\n<dict> doesn't follow another <key>servers</key> line.
Aug
8
answered Insert Lines after Multi-Line Regex Match
Aug
8
comment Convert file with integers written in ascii to binary file of integers
He says convert to binary files. I don't think there's room for newline characters in there.
Aug
8
revised Delete everything not matching this pattern 'something.swf' in txt file
oops, the sed one was plain wrong
Aug
8
comment Convert file with integers written in ascii to binary file of integers
@hildred, yes, as a matter of fact, I am, but the 0x0as are the newline characters added by -l regardless of the locale.
Aug
8
revised Delete everything not matching this pattern 'something.swf' in txt file
added 206 characters in body
Aug
8
comment Delete everything not matching this pattern 'something.swf' in txt file
That assumes they are blank separated though (wouldn't work on 'a.swf','b.swf' for instance).
Aug
8
revised Delete everything not matching this pattern 'something.swf' in txt file
added 70 characters in body
Aug
8
revised Delete everything not matching this pattern 'something.swf' in txt file
clarified requirements from comments
Aug
8
answered Delete everything not matching this pattern 'something.swf' in txt file
Aug
8
comment Delete everything not matching this pattern 'something.swf' in txt file
sorry, looks like I edited at the same time as you...
Aug
8
revised Delete everything not matching this pattern 'something.swf' in txt file
`-o` is a GNU extension
Aug
8
answered Bash: Convert Multi-line output to Single line
Aug
8
comment Show older or newer history items with the history command in zsh
@user590849, you're reading bash documentation, not zsh documentation.
Aug
8
revised How to convert &#x119; to letter?
It's true the `..` is not needed here. Good point.
Aug
8
comment How to convert &#x119; to letter?
You should use the -Mopen=locale option so that the text is output in the user's charset (and make that warning go away).
Aug
8
answered How to convert &#x119; to letter?
Aug
8
comment How to understand the command awk '{for(x=1;$x;++x)print $x}'?
$x is not equivalent to $x != "" because values like 0, +0, " 0", -0e12 also all evaluate to false.
Aug
8
comment How to understand the command awk '{for(x=1;$x;++x)print $x}'?
The first part is not a condition. It's more like start-expression; end-condition; end-of-iteration-expression (note that the end-of-iteration-expression doesn't have to be an increment).
Aug
8
revised Append files with bash one-liner?
no word-splitting here, so no need to set IFS. ITYM ${1?} instead of ${1:-} here