Как найти выражение внутри любого читаемого архива из текущей папки и её подпапок

find . -exec grep -H "" {} \;


This command, «find . -exec grep -H «» {} \;», is used to search for a specified expression within any readable file or archive in the current directory and its subdirectories. It combines the «find» and «grep» commands. The «find» command starts from the current directory (.), and for each file found, it executes the «grep» command with the specified expression («»). If a match is found, it will display the file name (-H) along with the line containing the expression. This is useful for searching for text within files in a directory and its subdirectories. An alternative might be using the «ack» command for more efficient text searching. Make sure to replace «» with the actual text you want to search for.

Ответить

Ваш адрес email не будет опубликован. Обязательные поля помечены *