DWQA QuestionsCategory: ServerSed command problem. Connect two sed commands with pipeline compliance, the second sed command will not execute
imzhi asked 4 weeks ago

cat /etc/man.config | grep 'MAN' | sed 's/#.*$//g' | sed '/^$/d'
The order is copied from brother bird’s Linux private dish, page.432
My test environment is CentOS 6, 64 bit.

eccstartup replied 4 weeks ago

I executed it here. It seems that the first sed removes comments and the second one removes blank lines

1 Answers
Windoze answered 4 weeks ago

I think you mistook the name of the document. It should be/etc/manpath.config