[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Email all users



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 to: