*** mp107 has quit IRC | 00:26 | |
*** Pali has quit IRC | 01:06 | |
*** florian has quit IRC | 01:43 | |
*** freemangordon has quit IRC | 01:51 | |
*** freemangordon has joined #maemo | 01:51 | |
*** Trizt has quit IRC | 02:03 | |
*** Trizt has joined #maemo | 02:04 | |
*** Kabouik has joined #maemo | 02:15 | |
*** Kabouik_ has joined #maemo | 02:45 | |
*** Kabouik_ has quit IRC | 02:46 | |
*** Kabouik_ has joined #maemo | 02:46 | |
*** Oksana has quit IRC | 02:46 | |
*** Kabouik_ has quit IRC | 02:49 | |
*** Kabouik_ has joined #maemo | 02:49 | |
*** Kabouik_ has joined #maemo | 02:50 | |
*** dafox has quit IRC | 02:51 | |
*** Kabouik_ has quit IRC | 03:20 | |
*** Kabouik has quit IRC | 03:25 | |
*** tm has quit IRC | 04:11 | |
*** tm has joined #maemo | 04:15 | |
*** infobot has quit IRC | 05:25 | |
*** pagurus` has joined #maemo | 06:47 | |
*** pagurus has quit IRC | 06:51 | |
*** rhn has joined #maemo | 08:15 | |
*** Vajb has quit IRC | 09:16 | |
*** Vajb has joined #maemo | 09:37 | |
*** Pali has joined #maemo | 09:49 | |
brolin_empey | 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. | 09:50 |
---|---|---|
brolin_empey | s/commnand/command/ | 09:51 |
luke-jr | tr doesn't replace strings | 09:53 |
luke-jr | only characters | 09:53 |
*** mva_ has joined #maemo | 10:20 | |
*** aloril has quit IRC | 10:20 | |
*** mva has quit IRC | 10:20 | |
*** aloril has joined #maemo | 10:21 | |
sixwheeledbeast | 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? | 10:25 |
*** atk has quit IRC | 10:30 | |
*** Kilroo has quit IRC | 10:31 | |
*** Kabouik has joined #maemo | 10:31 | |
*** Kabouik has joined #maemo | 10:33 | |
*** Kabouik has quit IRC | 10:41 | |
sixwheeledbeast | I have also fell into replace for blank, where sed '/foo/d;/bar/d' would be more efficient | 10:41 |
DocScrutinizer05 | sth in grep urgently needs optimization: https://pastebin.com/7y1Kx3W6 | 10:59 |
*** Kabouik has joined #maemo | 11:02 | |
*** florian has joined #maemo | 11:11 | |
*** florian has quit IRC | 11:15 | |
*** Kabouik has quit IRC | 11:25 | |
*** Kabouik has joined #maemo | 11:26 | |
*** Kabouik has quit IRC | 11:27 | |
*** Kabouik has joined #maemo | 11:27 | |
*** florian has joined #maemo | 11:48 | |
*** florian has quit IRC | 12:06 | |
Maxdamantus | but the `d` command discards the current line. | 12:34 |
Maxdamantus | rather than just removing a character. | 12:34 |
Maxdamantus | DocScrutinizer05: try LC_ALL=C | 12:36 |
*** mp107 has joined #maemo | 12:39 | |
Maxdamantus | alternatively, you could just use sed, which doesn't seem to do the unnecessary unicode processing (which I think is basically wrong anyway) | 12:40 |
*** mp107 has quit IRC | 13:09 | |
*** hurrian_ has joined #maemo | 13:25 | |
*** hurrian has quit IRC | 13:28 | |
sixwheeledbeast | I suppose so, depends on the situation as yu say | 13:35 |
*** mp107 has joined #maemo | 13:50 | |
*** dafox has joined #maemo | 13:57 | |
*** florian has joined #maemo | 14:09 | |
*** rikanee__ has joined #maemo | 14:53 | |
*** hurrian_ has quit IRC | 14:56 | |
*** rhn has quit IRC | 14:58 | |
*** florian has quit IRC | 15:14 | |
*** mp107 has quit IRC | 16:24 | |
*** florian has joined #maemo | 16:49 | |
*** dafox has quit IRC | 18:08 | |
*** rhn has joined #maemo | 18:12 | |
*** TheKit has quit IRC | 18:16 | |
*** Kabouik_ has joined #maemo | 20:31 | |
*** Kabouik_ has quit IRC | 20:32 | |
*** Kabouik_ has joined #maemo | 20:32 | |
*** TheKit has joined #maemo | 20:43 | |
*** Konsieur has joined #maemo | 21:28 | |
*** Kabouik_ has quit IRC | 21:31 | |
*** eMHa has joined #maemo | 21:45 | |
DocScrutinizer05 | 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 -); };:' | 22:04 |
DocScrutinizer05 | mad useful | 22:04 |
*** mva_ is now known as mva | 22:06 | |
DocScrutinizer05 | sorry, replace $* by "$@" | 22:09 |
DocScrutinizer05 | anyway, don't miss http://sed.sourceforge.net/sed1line.txt | 22:12 |
DocScrutinizer05 | you can bin ca 50% of other tools like tr, head, tail, whatnot. sed does it all | 22:13 |
*** tm has quit IRC | 22:34 | |
*** Oksana has joined #maemo | 23:00 | |
*** rhn has quit IRC | 23:22 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!