3.3
Table Of Contents
- Avid iNEWS Administration Guide
- Contents
- Using This Guide
- 1 - Introduction
- 2 - Connect Services
- 3 - Database Security
- 4 - Database Management
- 5 - Backing Up the iNEWS System
- 6 - Disconnects
- 7 - Troubleshooting
- A - Command References
- Programs Invoked by iNEWS
- Commands Used by Avid Personnel Only
- Linux Commands Used in iNEWS
- Console Control Commands
- Console Server Commands
- broadcast
- configure
- connect
- ctraits
- dbclean
- dbclose
- dbdev
- dbdump
- dbfree
- dblines
- dboriginal
- dbpurge (Superuser conditional)
- dbrestore
- dbserver
- dbsort
- dbtraits
- dbvisit
- dictionary
- diskclear (Superuser only)
- diskcopy
- doc
- ed
- enter
- force (Superuser only)
- grpcheck
- gtraits (Superuser only)
- help
- hogs
- idiff
- list
- list B
- list C
- list c
- list d
- list g
- list p
- list q
- list s
- list sq
- list u
- logout
- makemontab
- makeshift (Super user only)
- maketab (Superuser only)
- msgclean
- offline
- online
- otod
- reconnect
- remove
- rename (Superuser only)
- reorder
- restart
- searchtape
- send
- shutdown
- sitedump (Superuser only)
- siterestore (Superuser only)
- startup
- status
- stop
- su
- unbusy
- utraits (Super user only)
- version
- wholockedit
- Job List Commands
- Dialog Commands
- B - System Files
- C - Standard Dictionaries
- Using Dictionaries to Define Messages and Commands
- Customizing Dictionaries
- Utility Messages Dictionary (/site/dict/messages)
- DBServer Program Messages
- Disconnect Program Messages
- Category and Keyword Check Program Messages
- Keyboard Check Program Messages
- Keyboard Check Program Messages for Macros
- Grpcheck Messages
- Wire Program Messages
- Mail Server Messages
- Validation (Action) Server
- Seek Server Messages
- Last Login Messages
- Print Server Messages
- dbtraits Messages
- Save Error (Workstation) Messages
- Queues Dictionary (/site/dict/queues)
- Words Dictionary (/site/dict/words)
- Keyboard Macros Dictionary (/site/dict/keymacros)
- Case-shifting Dictionary (/site/dict/shift)
- MCS Dictionary (/site/dict/mcs)
- Job List Command Dictionary (/site/dict/joblist)
- D Messages Dictionary (/site/dict/dmessages)
- S Messages Dictionary (/site/dict/smessages)
- D - Environment Variables
- E - Managing Traits at the Console
- F - The Line Editor, ed
- Index
Starting ed
293
Within ed, pressing Enter with no line number reference or command will cause ed to make
the next line in the file the current line, displaying that line as it goes. For instance, in the
following example, the user selects line 19 in the file, then presses the Enter key three times.
The line editor, ed, responds each time by displaying lines 20, 21, and 22, respectively.
19
server 522 action - - ; timed-action
Enter
server 523 action - - ; timed-action
Enter
reslist 701 ;Data Receiver instance
Enter
wireserver 801 news AX -
When editing, it is necessary to specify the line number(s) to be acted upon. This can be
done in several ways:
• Type the line number.
• Type starting and ending line numbers separated by a comma.
• Type period (.) to specify current line number.
• Type a dollar sign ($) to specify last line in the file.
The editing command to act upon the specified line(s) is typed immediately following the
specified line(s). There should be no spaces. Here are some examples using the Print
command, p.
To make line 18 the current line, type:
18
To print (to screen) line 10 of the file, type:
10p
To print (to screen) lines 10-20, type:
10,20p
To print all lines from the current line to line 20, type:
.,20p
To print all lines in the file from line 80 to the end, type:
80,$p
To display the current line number, type:
.=
To display the line number of the last line, type:
$=
To make the fifth line from the bottom current, type:
$-5