$ find . -type f|grep -o ‘.[^./]+$’|sort|uniq

-o オプションはgrepでマッチした部分のみ出力する。

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA