DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Working with files and directories

Entering commands on the same line

To send several commands, one after another, separate each of them with a semicolon. For example:

   $ ls > list ; sort list > list1
This command sequence creates a list of files in a file called list. It then sorts the contents of the file alphabetically and redirects the output into a file called list1. The command after the semicolon is not executed until the command before it has completed; the shell waits for the earlier commands to finish.
Next topic: Running commands in a pipeline
Previous topic: Running a sequence of commands

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005