I want to take the below data, and have it output to file only the STMC#/(IP address) and the "there are X number of updates to install" lines for each machine. I know it's easy, but Im a beginner in BASH stuff, my solution would probably take way too many lines to do something easy.Thanks!
STMC221 (192.168.171.76)
Password:
2008-10-30 14:38:49.495 softwareupdate[360] Loading CatalogURL
http://mysus.company.lan:8088/index.sucatalog
No new software available.
There are no updates to install
STMC223 (192.168.23.25)
Password:
2008-10-30 14:38:29.245 softwareupdate[11526] Loading CatalogURL
http://mysus.company.lan:8088/index.sucatalog
There are 1 updates to install
STMC225 (192.168.171.42)
Password:
2008-10-30 14:38:30.813 softwareupdate[3084] Loading CatalogURL
http://mysus.company.lan:8088/index.sucatalog
There are 1 updates to install
STMC300 (192.168.171.240)
Password:
2008-10-30 14:38:31.661 softwareupdate[9255] Loading CatalogURL
http://mysus.company.lan:8088/index.sucatalog
No new software available.
There are no updates to install