sed -e 1d -e 50d -e ‘/junks/d’
would remove first and 50th line & any line(s) with the word “junks”.
update 20080821 :
sed -e ‘/^$/d’
would remove every empty line
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Copyright © 2021 /var/logs/paulooi.log
Powered by WordPress and Origin