総数:21 今日:1 昨日:0
$ find ./ -type f -mtime -50 -regex ".*\.txt\|.*\.sh" | xargs ls -1
参考url: http://mollifier.hatenablog.com/entry/20090115/1231948700
$ find . \( -type d -and -regex ".*\.\/out" -and -prune \) -or \( -type d -and -regex ".*\/\.git" -and -prune \) -or \( -type f -print \)
findeからgrep へpipeするとき、
| grep -a | バイナリファイルを除外というかテキストファイルとして検索 |
| grep -s | 「ディレクトリではありません」的なメッセージを除外 |
find . \( -type d -and -regex ".*\.\/out\|.*\.\/prebuilts" -and -prune \) -or \( -type d -and -regex ".*\/\.git" -and -prune \) -or \( -type f -print \) | xargs grep -s -a -ni --color -e "apply_patch\|apply_patch_check\|block_image\|block_image_verify\|block_image_update"