> I have  a string like postfix/smtpd[25532]: I want to cut it off at the
> [ so I end up with postfix/smtpd 

sed 's/\[.*$//'    (dump everything after first [ on line)

Volker

-- 
Volker Kuhlmann, list0570 at paradise dot net dot nz
http://volker.orcon.net.nz/             Please do not CC list postings to me.

Reply via email to