Need help with sed or awk and regular expressions
Michael Ault
mikerault at yahoo.com
Fri Jul 1 16:58:40 UTC 2005
I need a sed or awk type command that will convert:
44.MR3M01J.AF_TBL_COL_1.2005-06-30.DAT
to AF_TBL_COL.DAT
the 44.MR3M01J. is always the same, the "_1" could be
both "_1" or "_2", the date varies by month end and
the ".DAT" stays the same.
Eseentially:
find the seconf ".", cut from that position +1 to the
next "." minus 3, find the next "." and append from
there to the end.
Regular expressions make my head hurt...anyone got a
quick solution?
Mike
Michael R. Ault
Senior Consultant
Burleson Oracle Consulting
770-754-9057
www.ault.cc
www.remote-dba.com
More information about the Redhat-install-list
mailing list