Overview Of Changing Files - IBM ZVM - FOR LINUX V6 RELEASE 1 Getting Started

Getting started with linux on system z
Table of Contents

Advertisement

6. Press the Enter key.
Result: Your XEDIT screen looks like this:
Tip: XEDIT changed all lowercase letters to uppercase. To prevent this, issue the
subcommand set case mixed before you add text.

Overview of changing files

The simplest way to change a file is to type over text on a line. However, there are
times when you want to add or delete data in a file. Special keyboard keys and
XEDIT subcommands help you do that:
v Insert key. When you press the insert key, the XEDIT cursor changes shape. By
v Delete key. By placing the cursor on a line and pressing the delete key, the
v ADD and INPUT prefix commands. By moving the cursor to the prefix area,
v DELETE prefix command. By moving the cursor to the prefix area, typing "d"
v LOCATE subcommand. You can find strings in the file by using the LOCATE
18
z/VM: Getting Started with Linux on System z
MY
FILE
A1 F 80 Trunc=80 Size=3 Line=3 Col=1 Alt=3
DMSXMD587I XEDIT:
===== * * * Top of File * * *
===== CP IS THE Z/VM HYPERVISOR
===== CMS IS THE INTERACTIVE COMPONENT OF Z/VM
===== XEDIT IS THE CMS EDITOR
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7...
===== * * * End of File * * *
====>
placing the cursor on a line, you can insert text between existing letters.
character to the right of the cursor is deleted and the line closes up.
typing "a" and pressing the Enter key, you create a new line in the file. If you
want to add five lines, type "a5" in the prefix area.
The INPUT prefix command behaves similarly.
and pressing the Enter key, you delete a line. If you want to delete five lines,
type "d5" in the prefix area.
subcommand. XEDIT scrolls the file to the line in which the string occurs. The
invocation is l /string or simply /string. Example: To find an occurrence of
the word "interactive" in a file, issue this command from the XEDIT command
line:
====> l /interactive
or simply:
====> /interactive
X E D I T 1 File

Advertisement

Table of Contents
loading

Table of Contents