0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Mac】今日ダウンロードしたファイルを見つけるコマンド

Posted at

背景

ファイルをダウンロードしてブラウザのダウンロードした部分?をクリックすればファイルの場所を開けるが、ターミナルから一発で開きたかった。

コマンド

$ find ~/Downloads -type f -newermt "$(date +%Y-%m-%d)" ! -newermt "$(date -v+1d +%Y-%m-%d)"

考察

ダウンロードではなく、更新があったかどうかを見ている。
ちょっと重いので、findの前に何かして対象を絞りたい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?