Tag Info

Hot answers tagged


You could try something like this: scutil --nc show <service id> | sed -n '/IPv4/,/ExcludedRoutes/p' | sed '/ExcludedRoutes/,/{/d' sed -n '/IPv4/,/ExcludedRoutes/p' will show text between IPv4 and ExcludedRoutes, both included. sed '/ExcludedRoutes/,/{/d' will remove the ExcludedRoutes line. The result will be like this: $ cat file ...

Only top voted, non community-wiki answers of a minimum length are eligible