BASH_SRV Telegram 143
Если вам часто приходится искать файлы по содержимому, то для этого есть мощная связка grep + find 🔍

Например, чтобы найти все файлы с текстом "ERROR" в /var/log:


find /var/log -type f -exec grep -H "ERROR" {} \;


📌 А если хотите искать рекурсивно по каталогу проще, используйте grep -r:


grep -r "ERROR" /var/log


Добавим подсветку совпадений:


grep --color=always -r "ERROR" /var/log


Теперь нужные строки будут выделяться цветом

👉@bash_srv
👍4👌2



tgoop.com/bash_srv/143
Create:
Last Update:

Если вам часто приходится искать файлы по содержимому, то для этого есть мощная связка grep + find 🔍

Например, чтобы найти все файлы с текстом "ERROR" в /var/log:


find /var/log -type f -exec grep -H "ERROR" {} \;


📌 А если хотите искать рекурсивно по каталогу проще, используйте grep -r:


grep -r "ERROR" /var/log


Добавим подсветку совпадений:


grep --color=always -r "ERROR" /var/log


Теперь нужные строки будут выделяться цветом

👉@bash_srv

BY Bash Советы




Share with your friend now:
tgoop.com/bash_srv/143

View MORE
Open in Telegram


Telegram News

Date: |

To upload a logo, click the Menu icon and select “Manage Channel.” In a new window, hit the Camera icon. 6How to manage your Telegram channel? In the “Bear Market Screaming Therapy Group” on Telegram, members are only allowed to post voice notes of themselves screaming. Anything else will result in an instant ban from the group, which currently has about 75 members. To delete a channel with over 1,000 subscribers, you need to contact user support Ng was convicted in April for conspiracy to incite a riot, public nuisance, arson, criminal damage, manufacturing of explosives, administering poison and wounding with intent to do grievous bodily harm between October 2019 and June 2020.
from us


Telegram Bash Советы
FROM American