1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
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
..
common Sed: adds replace before matching sample 2016-02-27 14:23:24 +01:00
linux Merge pull request #779 from slash3b/slash3b 2016-02-21 21:52:57 +00:00
osx look: add page 2016-02-26 12:26:15 +02:00
sunos Add devfsadm for solaris. 2016-01-16 10:40:51 -08:00
index.json Updating the existing pages/index.json 2016-01-24 10:54:39 +02:00