As the title says, i'm trying to use sed to replace, say,
ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE myserver1 ora.LISTENER_SCAN2.lsnr 1 ONLINE ONLINE myserver2
into:
ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE myserver1
ora.LISTENER_SCAN2.lsnr 1 ONLINE ONLINE myserver2
I've tried using: sed 's/ ora*/\n/g' but to no avail. Help would be greatly appreciated!