I am piping STDOUT from commands such as ifconfig and dmesg through grep, sed and awk to get the information I need.
I need to now perform some looping and branching now and have been trying to figure out how to do this on the command line.
You may ask "Why the command line? - Why not put it into a script file?' I have a situation that the requirements put to me that I am not supposed to write any files to the system when gathering my information from the system.
Any help that you can provide or at least pointing me in the right direction would be greatly appreciated.
Thank you very much,
KG