* Michael Brailsford [Sat, 10 Mar 2007 at 11:25 -0800]
<quote>
> I would use awk (or any of its various forms, such as gawk) for that.
>
> echo akd_fak_asdkf_jal | gawk -F_ '{print "_" $4}'
>
> Or even cut (though you will lose the char used as the delim):
>
> echo akd_fak_asdkf_jal | cut -f4 -d_What if you want the last field, but it's not necessarily the 4th field? Just curious. Von Fugal
signature.asc
Description: Digital signature
-------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
