187 reputation
118
bio website jakub-g.github.com
location France
age 26
visits member for 3 years
seen May 24 at 13:46

I come from Poland, since 2012 I live in France and work as a JS dev in Aria Templates team.

My homepage (under construction, like each developer's):
http://jakub-g.github.com/


Jul
27
awarded  Nice Question
Jul
15
awarded  Famous Question
Dec
10
accepted Matching two different lines that are at least N lines distant from each other
Dec
9
revised Matching two different lines that are at least N lines distant from each other
added 158 characters in body
Dec
9
asked Matching two different lines that are at least N lines distant from each other
Nov
22
accepted `find` with multiple `-name` and `-exec` executes only the last matches of `-name`
Nov
22
asked `find` with multiple `-name` and `-exec` executes only the last matches of `-name`
Nov
22
comment How to remove multiple newlines at EOF?
Thanks, I used the following to do it in place for multiple files: find . -type f -name '*.js' -exec sed --in-place -e :a -e '/^\n*$/{$d;N;};/\n$/ba' {} \;
Jul
11
awarded  Notable Question
Apr
1
awarded  Popular Question
Nov
23
awarded  Citizen Patrol
Nov
21
comment Remove line containing certain string and the following line
The other plus in the AWK solution is that I can replace /bar/ with /bar|baz|whatever/. In sed that syntax doesn't seem to work.
Nov
20
comment Remove line containing certain string and the following line
Just for information: I'm analyzing logs in which entries are two-liners. So I want to find an entry matching the pattern and remove it as well as the next line. Hence I don't need to handle consecutive match lines, but thanks anyway for the completeness of your answers!
Nov
20
accepted Remove line containing certain string and the following line
Nov
20
comment Remove line containing certain string and the following line
How do I type a newline in console? Or this is script-only?
Nov
20
comment Remove line containing certain string and the following line
+1 for the length :) In my particular example I don't have consecutive bars so this one is super easy to remember.
Nov
19
revised Remove line containing certain string and the following line
retag, grammar
Nov
19
awarded  Scholar
Nov
19
awarded  Supporter
Nov
19
awarded  Editor