最近変更されたファイルをtailで表示する。
ファイル名をワイルドカードで指定して、一番最近変更されたファイルをtailで表示する。
ls -t /path/to/prefix-*.log | head -1 | xargs tail -f ls -t /path/to/prefix-*.log | head -1 | xargs less
お好みで
tail -f $(ls -t /path/to/prefix-*.log | head -1) less $(ls -t /path/to/prefix-*.log | head -1)
ls -t でタイムスタンプ順。
(追記)
カレントディレクトリの更新ファイルを2行ずつ監視。
watch -n2 'tail -n2 `ls -t`'