LoginSignup
0
1

More than 5 years have passed since last update.

GNU findutils > 1*24時間前のwrfoutを名前に含んでいるファイルを探す > find . -mtime -1 | grep wrfout

Last updated at Posted at 2017-01-16
動作環境
Xeon E5-2620 v4 (8コア) x 2
32GB RAM
CentOS 6.8 (64bit)
openmpi-1.8.x86_64 とその-devel
mpich.x86_64 3.1-5.el6とその-devel
gcc version 4.4.7 (とgfortran)
NCAR Command Language Version 6.3.0
WRF v3.7.1を使用。
find (GNU findutils) 4.4.2

WRF(Weather Research and Forecasting Model)関連。

昨日処理したwrfout_***ファイルを検索したい。

参考 http://unix.stackexchange.com/questions/10041/how-to-get-only-files-created-after-a-date-with-ls

$ find . -mtime -1 | grep wrfout
./wrfout_d02_2016-10-20_00:00:00
./wrfout_d01_2016-10-20_00:00:00
./wrfout_d03_2016-10-20_00:00:00

man find

 -mtime n
              File’s data was last modified n*24 hours ago.  See the comments for -atime to understand how
              rounding affects the interpretation of file modification times.

n * 24 hours ago

と記載しているが、-mtime 1でなく-mtime -1として指定するようだ。
多分。

0
1
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
1