Марення адміна

Писанина

Previous Entry Add to Memories Share
[OMGSW Blog] view confs without comments
rat
[info]mimikael
Just to note to myself. how to generate clean configs w/out any comments

grep ^[^#] /etc/vsftpd/vsftpd.conf.bk > /etc/vsftpd/vsftpd.conf

as a result we receive files w/out any garbage :)

compare number of lines in original file


# cat /etc/vsftpd/vsftpd.conf.bk | wc -l
118

and in file without comments

# cat /etc/vsftpd/vsftpd.conf | wc -l
12

You are viewing [info]mimikael's journal