[Robelle-l] Downshift all text but...
John MacLerran
macljohn at isu.edu
Tue Nov 23 14:34:26 EST 2004
Dear Robelle List,
I'm trying to find a way to downshift all text in a given file except:
1) text within quotes (double or single), and 2) any text following a
semi-colon. Is this something that Qedit server or Qedit for Windows
could do, or should I be looking at a shell script (unix or MPE ok).
Basically, the result should be something like this:
<before>
SCREEN AIQS643 ACTIVITIES FIND, CHANGE, DELETE
;
; This is a comment.
;
DEFINE ABC CHAR*10 = "HELLO" ; Another Comment
DEFINE DEF CHAR*10= 'GOOD BYE' ; comment
< after the magic >
screen aiqs643 activities find, change, delete
;
; This is a comment.
;
define abc char*10 = "HELLO" ; Another Comment
define def char*10 = 'GOOD BYE' ; comment
If you couldn't tell, we're migrating from PowerHouse from HP3000 to
unix and would like to downshift everything except program literals and
comments.
Any ideas would be appreciated.
Thanks!
--
----------------------------------------------------------------------
John MacLerran
IT Systems Analyst email: macljohn at isu.edu
Idaho State University V(208) 282-2954
http://www.isu.edu/~macljohn F(208) 282-3673
----------------------------------------------------------------------
More information about the Robelle-l
mailing list