Ben Hartshorne wrote:
>   uid=`echo $i | sed -e "s/[^:]*:[^:]*:\([^:]*\).*/\1/"`

> Someone make me feel embarassed by posting a much more beautiful script.
> At the very least, replace those sed lines with awk or something.  It
> should be much easier to say "grab the first and third field split by
> :'s" than that ugly regexps above.

cut -d : -f 1,3

-- 
see shy jo

Reply via email to