**** BEGIN LOGGING AT Sat Apr 20 02:59:56 2019 Apr 20 06:50:59 sicelo: If you only need to replace a literal string in a shell pipeline then you can use tr instead of a substitute commnand in sed. Apr 20 06:51:40 s/commnand/command/ Apr 20 06:53:10 tr doesn't replace strings Apr 20 06:53:23 only characters Apr 20 07:25:02 The example was a single char as far as I can tell. Also maybe either tr or sed's delete would be more ideal over replace for blank? Apr 20 07:41:40 I have also fell into replace for blank, where sed '/foo/d;/bar/d' would be more efficient Apr 20 07:59:01 sth in grep urgently needs optimization: https://pastebin.com/7y1Kx3W6 Apr 20 09:34:16 but the `d` command discards the current line. Apr 20 09:34:25 rather than just removing a character. Apr 20 09:36:52 DocScrutinizer05: try LC_ALL=C Apr 20 09:40:20 alternatively, you could just use sed, which doesn't seem to do the unnecessary unicode processing (which I think is basically wrong anyway) Apr 20 10:35:59 I suppose so, depends on the situation as yu say Apr 20 19:04:08 on topic: alias man=':(){ [ "sed" == "$1" ]||{ /usr/bin/man $*;return; }; less -f <(/usr/bin/man sed) <(wget http://sed.sourceforge.net/sed1line.txt -q -O -); };:' Apr 20 19:04:18 mad useful Apr 20 19:09:51 sorry, replace $* by "$@" Apr 20 19:12:56 anyway, don't miss http://sed.sourceforge.net/sed1line.txt Apr 20 19:13:53 you can bin ca 50% of other tools like tr, head, tail, whatnot. sed does it all Apr 20 22:00:07 If you run that alias, it overrides the : command. Apr 20 22:02:08 in general, alias is a pretty ugly way of overriding commands though .. you can just write functions instead, and avoid the funny escaping stuff. Apr 20 22:03:32 man(){ [ "sed" == "$1" ]||{ /usr/bin/man "$@";return; }; less -f <(/usr/bin/man sed) <(wget http://sed.sourceforge.net/sed1line.txt -q -O -); } **** ENDING LOGGING AT Sun Apr 21 02:59:57 2019