Search Results

Search: Posts Made By: albator1932
6,065
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
6,065
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...
Showing results 1 to 2 of 2

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