Useful sed command
· 4 min read
This is here primarily as a reminder to me; a note for when I need this again. You may already know this or you may find this useful to learn this.
Scripting tutorials and techniques using Bash, PowerShell, and other shell languages
View All TagsThis is here primarily as a reminder to me; a note for when I need this again. You may already know this or you may find this useful to learn this.
I'm working on a DHCP migration and discovered the previous admins didn't clean up old scopes when sites closed. It's hard to identify dead scopes from lease numbers since some live sites are rarely used. So I've created a simple script to ping the default gateway to check if the subnet still exists.