LoginSignup
4
5

More than 5 years have passed since last update.

iOSでプロジェクトのファイル数をカウントするときに使えるコマンド

Last updated at Posted at 2016-02-08

特定のディレクトリ下のファイル数を数える

Objective-CからSwiftへ移行したいと思った時、書き換えなきゃいけないファイル数はどのくらいになるのかを調べた。

まずはディレクトリまで進む。この時のプロジェクト名はsampleRecorder

image

そして以下のコマンドを打つとファイル数が出てくる

$ find . -name "*.swift" | wc -l

4
5
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
4
5