Is there a grep equivalent to the following perl search/replace?
perl -pi -e 's{LTAPEDEV\s+/dev/infmx/log_tape_dev}{LTAPE /dummy}g' onconfig
Not necessarily the search/replace, but searching for something like:
LTAPEDEV /dev/infmx/log_tap_dev
LTAPEDEV /dev/infmx/log_tap_dev
So a grep where I could essentially
grep+LTAPEDEV /dev/infmx/log_tap_dev
and get either of the above regardless of spaces.
perl -pi -e 's{LTAPEDEV\s+/dev/infmx/log_tape_dev}{LTAPE /dummy}g' onconfig
Not necessarily the search/replace, but searching for something like:
LTAPEDEV /dev/infmx/log_tap_dev
LTAPEDEV /dev/infmx/log_tap_dev
So a grep where I could essentially
grep+LTAPEDEV /dev/infmx/log_tap_dev
and get either of the above regardless of spaces.