2017-06-13 最新の日付けのディレクトリをワンライナーで取得 ls -lt | grep ^d | awk 'NR == 1 {print $9}'ls -lt | grep ^dでディレクトリを取得。awk使えなかったらこっちかな。 ls -td */ | head -n 1