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.

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