Remove comments and whitespaces with sed

pico /usr/bin/scrub
# Remove all comments and empty lines
sed -e ‘s/#.*//’ -e ‘s/[ ^I]*$//’ -e ‘/^$/ d’ $1

chmod  755 /usr/bin/scrub

pico /usr/bin/clrspace
# Remove all leading and trailing whitespace from each line;
sed ‘s/^[ t]*//;s/[ t]*$//’ $1

chmod  755 /usr/bin/clrspace

now you can simply run
scrub filename
clrspace filename


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