[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Commands Reference, Volume 4

newfile Command

Purpose

Converts a text file into an INed structured file.

Syntax

newfile File NewName ]

Description

The newfile command converts a text file into a structured file. If you specify only the file name in the File parameter, that will also be the name of the structured file. The original text file is backed up by appending a .bak to its name, making it the File.bak file. The newfile command exits with an error if the text file does not exist or if it cannot create the structured file.

See the readfile command to convert a structured file to a text file.

Examples

  1. To convert the menu2 text file into the newmenu structured file, enter:
    newfile menu2 newmenu
  2. To convert the menu2 text file into a structured file and save the text version as the menu2.bak file, enter:
    newfile menu2

Related Information

The e command, ghost command, history command, readfile command, rmhist command, versions command.

INed Editor Overview in AIX Version 4.3 INed Editor User's Guide introduces general concepts about the INed editor.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]