Files
tldr/pages
Leandro Ostera 7328774d81 Sed: adds replace before matching sample
Something I find myself doing more and more is to match on a line instead of trying to match all I want with `{{find}}`.

So in a file like:

```erl
{ riak_core, [ {
    {riak_ip, "127.0.0.1"},
    %% ...
}, 
   %% ...
]
```

Instead of replacing that ip by doing `sed 's/riak_ip,"127\.0\.0\.1/riak_ip,"$NEW_IP/'`, I do `sed '/riak_ip/s/127\.0\.0\.1/$NEW_IP'`.
2016-02-27 14:23:24 +01:00
..
2016-02-26 12:26:15 +02:00
2016-01-16 10:40:51 -08:00