Commit Graph

17 Commits (cd29c9775f92647b1160e3a587e3db4d78230538)

Author SHA1 Message Date
Waldir Pimenta a1ceb9d1b6 sed.md: add input to the only example missing it (#992)
* sed.md: add input to the only example missing it

* osx/sed.md: add input to the example missing it
2016-08-08 10:09:34 +03:00
Waldir Pimenta 685b6ea8bd sed: swap extended regex & line pattern examples 2016-04-21 19:13:01 +01:00
Waldir Pimenta 1c76b8ea7b sed: reword last example and add it to the osx version too 2016-04-21 19:11:33 +01:00
Khaja Minhajuddin 4915aa3b8b sed.md: use alternative separators (#806) 2016-04-10 20:18:24 +01:00
Leandro Ostera e22f8087e1 Updates description 2016-03-01 12:54:15 +01:00
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
Ruben Vereecken 4a52a7006d Formatted sed page 2016-01-21 13:02:00 +01:00
Ruben Vereecken a454ee1a5d Merge branch 'patch-3' of git://github.com/waldyrious/tldr into waldyrious-patch-3
Conflicts:
	pages/common/sed.md
2016-01-21 13:01:04 +01:00
Ruben Vereecken 066582e8ea Formatted all pages according to guidelines. 2016-01-08 09:38:59 +01:00
Amine Hajyoussef 3fe8681e19 consistent markup 2015-12-31 14:11:18 +01:00
Leandro Ostera 1a75ffb92a Update sed.md
Error on the command.
2015-11-23 16:05:25 +01:00
Srinivasan R e4114fa6cc Normalize the final new line
Fixes #310
Some files had no newlines, some had 1 newline and some more than 1 newline.
Normalize them all to have only 1 newline at the end of all files.
2015-10-28 14:03:06 +05:30
Waldir Pimenta a92aec7dc0 restore short option -i per discussion in #293 2015-08-25 00:56:09 +01:00
Waldir Pimenta 0348a644de various fixes and tweaks to sed
- don't use g in all examples
- fix option for extended regex (-E is in grep :))
- spell out the -i option and remove a stray `''` from that command
- use the term "expressions" in the example using -e
2015-08-20 16:59:41 +01:00
Igor Shubovych 27be751478 sed: fix md syntax 2014-05-18 01:12:37 +03:00
James H. Linder 1efb6b906d Adding a line for sed for making multiple replacements in one command. 2014-03-27 14:27:35 -04:00
rprieto f00bf64426 Move pages back into a "pages" folder 2014-03-04 23:28:29 +11:00