LoginSignup
0
1

More than 5 years have passed since last update.

GNU coreutils > stat > Symbolic link先のファイルのサイズを取得する > stat -Lc %s GRIBFILE.AAA

Last updated at Posted at 2017-01-30
動作環境
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
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)
GNOME Terminal v2.31.3
GNU coreutils 8.4                  May 2016 

WRF(Weather Research and Forecasting Model)において、WPSにてNCEPデータのSymbolic linkを作成している。

そのコマンドでミスをして、「元ファイルを消してしまっていないか?ファイルサイズは0になっていないか?」を確認したくなった。

参考 https://ubuntuforums.org/showthread.php?t=1751783

$ stat -Lc %s GRIBFILE.AAA 
19515418
$ stat -Lc %s GRIBFILE.* | less^C
19383082
19320312
19424502
19443886
19294341
19291482
19384378
19109982
19104404
19165879
19030230
19118363
19064058
19115145
19172183
...

大丈夫そう。

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