Well the sed command won't work, because like I originally said, the part (root@####) is different on many lines. The #### is just a label for multiple different servers, like server1, server 3.
There is like 15 of them. I don't wan't to type in the sed command for every different root@server1, root@server2, root@server3, etc.
Do you see what I'm saying?
About the awk part, it works, I just have to trim the part of the lines containing server names delimited by colon.
Here is the file with servers listed, maybe that will help with the visual:
Quote:
root@server1: /opt/sysadm/bin/nbu_unassign_media.sh: need to install
root@server2: /opt/sysadm/lib/rtidirs.dist.20110131: need to install
root@server4: /opt/dba/bin/goe: need to update
root@server1: /opt/dba/bin/removedbaccount.sh: need to update
root@server1: server1: /opt/dba/results/res03000.r: need to remove
root@server2: server2: /opt/dba/results/res03001.r: need to remove
root@server3: server3: /opt/dba/results/res03099.r: need to remove
Does that make more sense. I know I'm confusing people, but see how there are different servers being listed and that the bottom part of the file has one more column delimited by a colon.
I would have to use separate
sed commands, unless there is a way to delimit that part and erase it from every line.