UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: zChapter 9
The ex Editor
Next: Reference: =
 

!

[address] !command

Execute Unix command in a shell. If address is specified, apply the lines contained in address as standard input to command, and replace the lines with the output and error output. (This is called filtering the text through the command.)

Examples

:!ls		List files in the current directory
:11,20!sort -f	Sort lines 11-20 of current file


Previous: Reference: zUNIX in a Nutshell: System V EditionNext: Reference: =
Reference: zBook IndexReference: =

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System