#dummy
ipLight.awk reprints any text input with appended status of IP (GREEN,OK) OR (RED,NOK) No need to loop or parse output separately.
Shell with AWK ready .
Example:
- shell
ifconfig | awk -f ipLight.awk cat "file with output any text with IP in any order" | awk -f ipLight.awk
- Copy the script locally https://github.com/vkg23/
Refer to Getting Started
Strengthen the REGEX Check for valid IP's ( At present blind skip of Loopbacks and 255 SUBNET strings )
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request