How do i awk the file name only?
1AADtP-0003FR-MF-D:imap failed @ Thu Oct 16 14:34:39 2003. A restart was attempted automagicly.
1AADUP-00038A-Eh-D:imap failed @ Thu Oct 16 14:08:49 2003. A restart was attempted automagicly.
1AAE1k-0003Hs-Dy-D:imap failed @ Thu Oct 16 14:43:16 2003. A restart was attempted automagicly.
1AAEA5-0003KG-6u-D:imap failed @ Thu Oct 16 14:51:53 2003. A restart was attempted automagicly.
1AAEIP-0003Mm-TT-D:imap failed @ Thu Oct 16 15:00:29 2003. A restart was attempted automagicly.
1AAEQk-0003QI-Mj-D:imap failed @ Thu Oct 16 15:09:06 2003. A restart was attempted automagicly.
1AAEZ5-0006Ns-G1-D:imap failed @ Thu Oct 16 15:17:43 2003. A restart was attempted automagicly.
for i in `grep restart *` ; do rm -rf awk((^.*):?,$i) ; done
What is the correct syntax to awk the file name only 1AAEZ5-0006Ns-G1-D ?
1AADtP-0003FR-MF-D:imap failed @ Thu Oct 16 14:34:39 2003. A restart was attempted automagicly.
1AADUP-00038A-Eh-D:imap failed @ Thu Oct 16 14:08:49 2003. A restart was attempted automagicly.
1AAE1k-0003Hs-Dy-D:imap failed @ Thu Oct 16 14:43:16 2003. A restart was attempted automagicly.
1AAEA5-0003KG-6u-D:imap failed @ Thu Oct 16 14:51:53 2003. A restart was attempted automagicly.
1AAEIP-0003Mm-TT-D:imap failed @ Thu Oct 16 15:00:29 2003. A restart was attempted automagicly.
1AAEQk-0003QI-Mj-D:imap failed @ Thu Oct 16 15:09:06 2003. A restart was attempted automagicly.
1AAEZ5-0006Ns-G1-D:imap failed @ Thu Oct 16 15:17:43 2003. A restart was attempted automagicly.
for i in `grep restart *` ; do rm -rf awk((^.*):?,$i) ; done
What is the correct syntax to awk the file name only 1AAEZ5-0006Ns-G1-D ?