LoginSignup
0
0

More than 5 years have passed since last update.

GnuWin cmdでファイルサイズのみを取得

Last updated at Posted at 2019-05-08

windowsのコマンドラインで、ファイルサイズのみを取得したい

※GnuWinを導入したwindowsが対象です。GnuWinはWindowsでlinuxコマンドを使用するためのソフトウェアで、SourceForge.netなどで入手が可能です。

lsとgawkをつなげて実現


C:\workspace>ls -l test.dat |gawk "{print \"size=\" $5}"
size=7
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