I didn't know about the units program. Is there any resource out there that lists these little *nix utility programs?
The 500-mile email (2002)
81–90 of 145 posts
Re: The 500-mile email (2002)
#82Earlier quoted context omitted.
What do you use it for?
One use is converting columns of numbers into math strings for bc. Example (contrived): $ seq 10 20 | paste -s -d + 10+11+12+13+14+15+16+17+18+19+20 $ seq 10 20 | paste -s -d + | bc 165 Or converting columns of strings into regex 'or' clauses for searching (contrived example again): $ cut -f 3 -d , something.csv | paste -s -d "|" a|b|c|d|e|f $ egrep "$(cut -f 3 -d , something.csv | paste -s -d "|")" another_file ...…
Re: The 500-mile email (2002)
#83Earlier quoted context omitted.
What do you use it for?
One use is converting columns of numbers into math strings for bc. Example (contrived): $ seq 10 20 | paste -s -d + 10+11+12+13+14+15+16+17+18+19+20 $ seq 10 20 | paste -s -d + | bc 165 Or converting columns of strings into regex 'or' clauses for searching (contrived example again): $ cut -f 3 -d , something.csv | paste -s -d "|" a|b|c|d|e|f $ egrep "$(cut -f 3 -d , something.csv | paste -s -d "|")" another_file ...…
Re: The 500-mile email (2002)
#84Who though it was going to be a TTL issue before finishing reading the story? :)
You probably mean something else (RTT?) but definitely not TTL, which is a completely different thing :)
Re: The 500-mile email (2002)
#85Re: The 500-mile email (2002)
#86Another email incident at Microsoft worth reading [1]. [1] http://blogs.technet.com/b/exchange/archive/2004/04/08/10962...
Re: The 500-mile email (2002)
#87Re: The 500-mile email (2002)
#88I didn't know about the units program. Is there any resource out there that lists these little *nix utility programs?
ls /usr/binRe: The 500-mile email (2002)
#89I tried the 'units' program on OSX. It seems that it does not recognise the 'millilightseconds' unit.