-----Original Message-----
From: Nick Rout <[EMAIL PROTECTED]>
To: CLUG <[EMAIL PROTECTED]>
Date: Friday, April 05, 2002 4:39 PM
Subject: parsing


>I have  a string like postfix/smtpd[25532]: I want to cut it off at the
>[ so I end up with postfix/smtpd 
>
>how do i do it?
>-- 
>Nick Rout <[EMAIL PROTECTED]>



For a fixed length string try

echo postfix/smtpd[25532] | cut -c 1-13

No guarentees, I haven't had a change to test it.

Wayne



Reply via email to