This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
текстовые_редакторы_ed_sed_vi_vim [2023/11/02 08:52] val [Настройка] |
текстовые_редакторы_ed_sed_vi_vim [2024/09/25 08:11] (current) val [Аргумент "i" - непосредственное редактирование файла] |
||
---|---|---|---|
Line 153: | Line 153: | ||
$ sed -i.bak -e '/^$\|^#/d' ssh_config | $ sed -i.bak -e '/^$\|^#/d' ssh_config | ||
- | $ sed -i'' -e '/swap/s/^/#/' fstab | + | $ sed -i -e '/swap/s/^/#/' fstab |
</code> | </code> | ||