[Robelle-l] Qedit String change question
John MacLerran
macljohn@isu.edu
Mon, 13 Oct 2003 16:26:06 -0600
Dear Robelle List,
I have a String change problem in Qedit that I'm trying to solve. We are
beginning our migration from the 3000 to HP-UX, and have hundreds of
PowerHouse source files that have lines similar to this:
use AIQUCTMP.sourceai
use AIQUCPIN.sourceai
use AIQUC012.sourceai
use AIQUC021.sourceai
use AIhilite.sourceai
use AIQUCPIC.sourceai
use AIQUCPRG.sourceai
Of course, HP-UX, being unix, wants filenames expressed in
/directory.extension format, so as we migrate our source code, the above
lines should end up looking something like:
use /isu/source/ai/FILENAME.qku
With the FILENAME entry corresponding to the filename: AIQUCTMP,
AIQUCPIN, etc. The /isu/source/ai directory is where the source code
that is being used will ultimately reside. So far, I have the following
Qedit command file:
set lang text
set len 132
set window(upshift)
cj ".sourceai".qku"@
cj "^use (AI[0-9a-zA-Z])"(reg)"use /isu/source/ai/\1" @
Which gets me very close to what I need. After I run it, the 'use' lines
look like this:
use /isu/source/ai/AIQUCTMP.qku
use /isu/source/ai/AIQUCPIN.qku
use /isu/source/ai/AIQUC012.qku
use /isu/source/ai/AIQUC021.qku
use /isu/source/ai/AIhilite.qku
use /isu/source/ai/AIQUCPIC.qku
use /isu/source/ai/AIQUCPRG.qku
Where I'm stuck is that I'd like all the filenames to be lowercase, as
that's how the actual filenames on HP-UX will be. I'm not sure how to
tell Qedit to downshift all the filenames on the 'use' lines only.
Any ideas?
Thanks!
----------------------------------------------------------------------
John MacLerran
IT Systems Analyst email: macljohn@isu.edu
Idaho State University V(208) 282-2954
http://www.isu.edu/~macljohn F(208) 282-3673
----------------------------------------------------------------------