指定ディレクトリの中の指定ファイル名で最新のファイルパスを返却する。
find.zsh
find {{指定ディレクトリ}} -type f | xargs ls -l --time-style=long-iso | sort -k 6,7 | grep {{ファイル名}} | tail -1 | gawk '{print \$NF}'
More than 5 years have passed since last update.
指定ディレクトリの中の指定ファイル名で最新のファイルパスを返却する。
find {{指定ディレクトリ}} -type f | xargs ls -l --time-style=long-iso | sort -k 6,7 | grep {{ファイル名}} | tail -1 | gawk '{print \$NF}'
Register as a new user and use Qiita more conveniently