But then again, I raised him.
But, WTF, cat stories on Hacker News? I don't know what to say!
1,034 karma · joined April 7, 2011
Email: kruhft@gmail.com
https://www.github.com/scarlet31.github.io
But then again, I raised him.
But, WTF, cat stories on Hacker News? I don't know what to say!
To use associative arrays in ksh:
typeset -A table
column="name"
table[$column]="value"
echo ${table[$column]}
ksh is much more decent than bash, although I reccommend using in an emacs M-x shell buffer for better command line editing.Edit: forgot to dereference column when setting value in table.
It's incredibly powerful for interactive use and data manipulation combined with the standard Unix tools and sometimes pulling out perl or python is more work than just banging out a pipeline on the command line.
Quoting does take some time, but just remember that when in double to quote your variable expansions with double quotes. There's more too it, but that's a good rule to start with.
And that's the problem right there. The developer is not being paid to do that, they are paid to finish the app that was asked for as quickly and cheaply as possible, at least from the client's perspective. Of course they want a high quality app, but are not willing to pay the price, so most development ends up being shovelware. But it is work, just not the most glamorous work that one can dream of.
Does nobody remember Carnivore? Imagine what has been developed since then.
(loop (print (eval (read))))I kid, I kid...
You might want to look into a more powerful email client. Gnus (a part or emacs) could be programmed to perform such a task. Setting it up to download your gmail over IMAP and the running a process filter would probably do the trick.
Kruhft is more about the links and the content of the site with hopefully a discussion that goes along with the type of content I'm posting. It's an experiment, but it's quite fun so far.