Bash

awkでコマンドの実行結果を変数に入れる方法

More than 3 years have passed since last update.

getlineを使う
echo "time:" | awk '{ "date" | getline var; print $1" "var}'
time: Tue Jun 9 11:00:44 JST 2015