home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


!

[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: z UNIX in a Nutshell: System V Edition Next: Reference: =
Reference: z Book Index Reference: =

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