intertwingly

It’s just data

Bash Here


I’m posting this in case I’m not the last person to realize this.  While I’ve used the Unix sh longer than DHH has been alive, I either never realized or have long since forgotten that it supports here documents.  Example:

ruby <<EOD | sort | uniq -c | sort -n
  Dir['*'].each do |name|
     puts name.split('.',0)[1] || '<null>'
  end
EOD