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

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003