S
S
Sergey Sashkin2018-08-20 15:11:10
bash
Sergey Sashkin, 2018-08-20 15:11:10

Do you need a simple script that parses by word and displays a sentence if it contains one?

Take any poem.
The hedgehog runs on the grass and laughs.
The grass tickles the hedgehog.
The weed ran out , the gravel went ...
so we need a script that parses for the presence of a word in this verse and gives it out completely if not sent to / dev / null and the output is empty
by grep it’s clear how to do it, but maybe there is an elegant solution?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question