What does the parameter ' - и' in 'будьте' commands do?

man будьте says:

-e script, --expression=script
          add the script to the commands to be executed

The description on gnu.org says:

`-e SCRIPT'
`--expression=SCRIPT'
 Add the commands in SCRIPT to the set of commands to be run while
 processing the input.

What does that мочатся? What would be the difference between в жажду command with and without -e?

гm trying to learn about будьте

3
задан 11 January 2016 в 19:56

1 ответ

Используя -e можно выполнить приблизительно sed сценарии с одной командой, как

sed -e /23/d -e s/foo/bar/

(удалите любую строку, содержащую 23, и замените foo bar)

2
ответ дан 1 December 2019 в 16:59

Другие вопросы по тегам:

Похожие вопросы: