Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ack --jsjsファイルでのみ検索するために使用できます。しかし、検索したいファイルタイプが現在ackによって認識されていない場合はどうなりますか?それを回避する方法はありますか?
ack --js
次のようなものを追加することで、新しいタイプを定義できます。
--type-set=eiffel=.e,.eiffel
...~/.ackrcファイルに。-a(ほぼ)すべてのファイルを検索するコマンドラインオプションを使用することもできます。
~/.ackrc
-a