John Summerfield wrote:
RPN01 wrote:
When you get down to just 3270 access, the sed command is your friend.
Do it
once to the terminal, if the file isn't too big, and check your results,
then use > to put the results into a new file, rename the old, rename the
new, and then start the cycle over again...

Where possible, I like to
cp file-to-change saved-file-to-change
sed <saved-file-to-change >file-to-change \
  # whatever edit commands

Repeat seds until done.

This approach preserves relevant permissions on the original (mv does not).

you are aware that sed (and perl) has a -i command line option to create
a backup?

from the 3270 console I usually use perl.

mark

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to