Skip to content

Instantly share code, notes, and snippets.

@844196
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save 844196/f550e70a1de917a3da93 to your computer and use it in GitHub Desktop.

Select an option

Save 844196/f550e70a1de917a3da93 to your computer and use it in GitHub Desktop.
tree(1)のいい感じのオプション
$ # -a 全てのファイルを表示
$ # -I オプション引数のパターンにマッチしないものを表示(この場合'.git/'を表示させたくない)
$ # --norepor 末尾のファイル、ディレクトリ数を表示させない
$ tree -a -I "\.git" -F --noreport ./
./
└── renge/
├── .gitignore
├── .travis.yml
├── Gemfile
├── Gemfile.lock
├── LICENSE.txt
├── README.md
├── Rakefile
├── bin/
│   ├── console*
│   └── setup*
├── exe/
│   └── renge*
├── lib/
│   ├── renge/
│   │   └── version.rb
│   ├── renge-quotes
│   └── renge.rb
├── pkg/
│   └── renge-1.0.gem
└── renge.gemspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment