With a POSIX shell (bash, ksh, some flavours of sh, ...):
expr "$var" : '\(.*\)..'
Chris F.A. Johnson http://cfaj.freeshell.org
My code (if any) in this post is copyright 2001, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
I am processing a tab delimited file in awk (actually nawk). Some
of the fields have trailing blanks which I need to remove. Anyone
have ideas on how to do this?
thanks in advance,
ps. is this the correct group for awk questions?