Comment line with sed

comment line starting with abc
sed -i '/^abc.*/s/^/#/' file

comment all lines in the file
sed -i '/^/s/^/#/' file

comment line starting with abc and append a comment on end of line
sed '/^abc.*/s/^/# /; //s/$/ comment/' file

Ver consumo de disco do nós Simplivity

 1) Conectar, via SSH, em uma das OVCs utilizando a credencial "administrator@vsphere.local" 2) Executar os comandos abaixo:    - ...

Mais vistos