|
# Insert the CGIDEV2 section name as first line
1i \ /* Insert as the first record */
/$start /* Insert this text */
# Increase the file size as requiredexpected, plus safety margin */
s/RowCount="2"/RowCount="30000"/ /* The largest number of rows
# Insert the CGIDEV2 section line START name for the rowlines from the anchor, which is the last row heading */
/Description / { /* Anchor */
n /* Go down two
ntext */
i \
/$line /* Insert this
}"Description" text found AFTER the previous point of insertion */
# Insert the CGIDEV2 section line END name for the row
/Description/ { /* This is
n /* Go down twolines after the last spreadsheet column ("Description in this case)*/
ni > \
/$end /* Insert thistext */
}
cat my_template.xml | sed -f sedscript > sedout1.xml
dcl &shellstr *char 1024 /* Qshell string to execute */
dcl &fromifs *char 128 '/usr/local/files/my_template.xml'
dcl &sedout *char 38 '/usr/local/files/sedout1.xml'
chgvar &shellstr ('cat ' *cat &fromifs *bcat ' | sed -f sedscript >' +
*bcat &sedout )
qsh cmd( &shellstr )
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.