Better HN
topnewbestaskshowjobs
Log inSign up

1010010101

3 karma · joined Nov 20, 2011 (15y ago) · 4 submissions

Submissions

comment 15y ago · link · parent

This is meant to be a legitimate question, not sarcasm: Are there any countries where telecom is not "rigged"? That is, places where an entrepreneur could enter the market and the incumbents by and large would play "fair"?

comment 15y ago · link · parent

Note: "cmds" is one or more s commands. For other commands, if it's a big file, I will just pipe through less (still no temp file) and then save the buffer (to overwrite the original file), instead of using this hack.

A hack for in-place editing, for old school sed (no -i):

sedi(){ case $# in 0) echo usage: sedi cmds file;; 2) sed -an ' '"$1"'; H; $!d; g; w '"$2"'' $2;; esac; }

comment 15y ago · link · parent

sed -n '/./{ /beg/,/end/p;}'