mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
![]() 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'`. |
||
---|---|---|
.. | ||
common | ||
linux | ||
osx | ||
sunos | ||
index.json |