On Solaris, the newform command modifies the format of a text file.
Description
newform reads lines from the named file names, or the standard input if no input file is named, and reproduces the lines on the standard output. Lines are reformatted in accordance with the specified command line options.
- Description
- Syntax
- Examples
- Related commands
- Linux commands help
Except for -s, command line options may appear in any order, may be repeated, and may be intermingled with the optional file names. Command line options are processed in the order specified. This means that option sequences like “-e15 -l60” yield results different from “-l60 -e15”. Options are applied to all filenames on the command line.
Syntax
newform [-s] [-itabspec] [-otabspec] [-bn] [-en] [-pn] [-an] [-f] [-cchar] [-ln] [filename]…
Options
Examples
newform -f myfile.txt
Display the tab specification of the file myfile.txt.
newform -s -i -l -a -e filename
newform -l1 -b7 filename
Related commands
csplit — Split files based on a defined context.tabs — Set tab stops on a terminal.