Search Results

Search: Posts Made By: Scrutinizer
2,934
Posted By Scrutinizer
Yes that was indeed not a good approach. Also a...
Yes that was indeed not a good approach. Also a good thing you pointed out that the shell approach only gives a proper answer if inet is present in the file. But this would still not solve that...
2,934
Posted By Scrutinizer
Note that with standard sed (non-GNU) there needs...
Note that with standard sed (non-GNU) there needs to be a ; before the trailing }:
ip=$(sed -n '/inet */{s///p;q;}' config.boot)

or we can avoid the braces by using negation style:
ip=$(sed...
Showing results 1 to 2 of 2

 

Featured Tech Videos

All times are GMT -4. The time now is 12:45 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy