Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: albator1932
4,915
Posted By otheus
Once you know the sed command works as expected,...
Once you know the sed command works as expected, you can use the -i option to replace the file you just edited.

Also, Shell_Life's example makes one big mistake: using unescaped periods (.) to...
4,915
Posted By Shell_Life
Here is one way: sed...
Here is one way:
sed '/152.15.x.y/d;/152.9.x.y/d;/152.19.x.y/d;/44.33.x.y/d' /etc/hosts
Showing results 1 to 2 of 2

 

Featured Tech Videos

All times are GMT -4. The time now is 01:10 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy