windowsのコマンドラインで、ファイルサイズのみを取得したい
※GnuWinを導入したwindowsが対象です。GnuWinはWindowsでlinuxコマンドを使用するためのソフトウェアで、SourceForge.netなどで入手が可能です。
lsとgawkをつなげて実現
C:\workspace>ls -l test.dat |gawk "{print \"size=\" $5}"
size=7
Go to list of users who liked
More than 5 years have passed since last update.
windowsのコマンドラインで、ファイルサイズのみを取得したい
※GnuWinを導入したwindowsが対象です。GnuWinはWindowsでlinuxコマンドを使用するためのソフトウェアで、SourceForge.netなどで入手が可能です。
lsとgawkをつなげて実現
C:\workspace>ls -l test.dat |gawk "{print \"size=\" $5}"
size=7
Register as a new user and use Qiita more conveniently
Go to list of users who liked