LINUX_SRV Telegram 346
Регулярные выражения Bash

Программа grep — это основной инструмент для работы с регулярными выражениями.

Самый простой случай использования grep — поиск строк, содержащих фиксированную подстроку. В следующем примере grep вывел все строки, содержащие последовательность nologin:


grep nologin /etc/passwd

Output:
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
games:x:5:60:games:/usr/games:/usr/sbin/nologin
...


https://telegra.ph/Regulyarnye-vyrazheniya-Bash-11-01
2



tgoop.com/linux_srv/346
Create:
Last Update:

Регулярные выражения Bash

Программа grep — это основной инструмент для работы с регулярными выражениями.

Самый простой случай использования grep — поиск строк, содержащих фиксированную подстроку. В следующем примере grep вывел все строки, содержащие последовательность nologin:


grep nologin /etc/passwd

Output:
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
games:x:5:60:games:/usr/games:/usr/sbin/nologin
...


https://telegra.ph/Regulyarnye-vyrazheniya-Bash-11-01

BY Типичный Сисадмин




Share with your friend now:
tgoop.com/linux_srv/346

View MORE
Open in Telegram


Telegram News

Date: |

More>> Your posting frequency depends on the topic of your channel. If you have a news channel, it’s OK to publish new content every day (or even every hour). For other industries, stick with 2-3 large posts a week. Among the requests, the Brazilian electoral Court wanted to know if they could obtain data on the origins of malicious content posted on the platform. According to the TSE, this would enable the authorities to track false content and identify the user responsible for publishing it in the first place. Channel login must contain 5-32 characters A new window will come up. Enter your channel name and bio. (See the character limits above.) Click “Create.”
from us


Telegram Типичный Сисадмин
FROM American