Latest Posts
Tags
awk awk -F awk examples background run script bash awk command grep linux curl disk space docker commands docker usage du find and grep Google Analytics grep -v grep examples java java example linux awk linux command linux find linux grep linux ls ls -al ls -lrt ls examples ls sort ls sort by size mkdir mv examples mysql mysql column to row mysql example rm rmdir sed sed examples sed tutorial seo Shell tutorial top vim vim examples vim tutorial w wordpress
Tag Archives: delete specific lines
How to delete lines containing a specific string in a text file in linux/unix
Delete lines containing a specific string in a text file, we have three implementation methods: sed -i ‘/ pattern/d’, grep -v ‘pattern’ and awk ‘!/pattern/ {print $0}’ Continue reading
Posted in Text Processing, Awk Command, How to, Sed Command
Tagged awk examples, delete specific lines, grep examples, sed examples
Comments Off on How to delete lines containing a specific string in a text file in linux/unix