LOGFILE=/tmp/rc.net.out # LOGFILE is where all stdout goes. What sed command should i use in order to only display LOGFILE=/tmp/rc.net.out I try using this sed "/#/d" tmp1.txt > tmp2.txt but it delete the whole line away