How do I remove all lines from a file up to a keyword?
To remove all lines up to and including a keyword from a file simply use sed as follows:
sed '1,/keyword/d' infile > outfile
(replacing keyword/infile/outfile with the relevant data)
To remove all lines up to and including a keyword from a file simply use sed as follows:
sed '1,/keyword/d' infile > outfile
(replacing keyword/infile/outfile with the relevant data)
You cannot comment on this entry
/dev/null 3g 404 7 A580IP activation aero analog antivirus apt apt-get arranged asf authentication auto login auto start autologin autostart av avahi avrdude awstats backup block bonjour boot bridged browser C475IP cacti cc128 centos centos 7 centos7 certificate check chmod chrome cisco citrix clear cluster ctrl cluster hat cluster triple clusterctrl clusterhat cm cmdline compile compute module