How do I search a file for a pattern, then extract part of the pattern or supply a default if the pattern does not exist?
I’m trying to write a script that searches through a pre-made list of running processes across a series of machines. I’m specifically looking for rsyslogd running on those devices, and attempting to …