Can someone please assist me, I'm trying to get vi to remove all the occurences of the text in a file i.e. "DEVICE=/dev/mt??". The "??" represents a number variable. Is there a globel search and delete command that I can use?
Thank You in Advance.
# to delete
:%s#DEVICE=/dev/mt[0-9][0-9]##g
I'm using AIX, if that makes a difference. Is the # correct? My docs show "/" instead.
it can be any single character. If you use '/' you'll need to escape the '/' in the path of your device with '\'.