Computer History Notes - Herong's Tutorial Notes - v3.13, by Herong Yang
Command Line Input and Output Redirection
This section provides a quick introduction of C shell command line standard input and output redirection.
C Shell Command Line Input and Output Redirection: Changes input and/or output from terminal console to other commands or files.
Input and output redirection uses the following formats:
Examples of C shell command line input and output redirection:
>csh %ls -al > file list %more file list drwx--x--x 6 herong users 1024 Jul 21 21:56 . drwxr-xr-x 4 root root 1024 May 24 22:03 .. -rw-r--r-- 1 herong users 242 Jul 21 21:56 .cshrc -rw-r--r-- 1 herong users 76 Jan 4 03:15 .login -rwxr-xr-x 1 herong users 3992 Aug 19 10:19 a.out -rw-r--r-- 1 herong users 0 Jul 21 20:27 file list -rw-r--r-- 1 herong users 40 Aug 19 10:18 hello.c -rw-r--r-- 1 herong users 0 Jul 21 21:56 new file %tar -cO * | compress > backup.tar.Z %ls -l -rwxr-xr-x 1 herong users 3992 Aug 19 10:19 a.out -rw-r--r-- 1 herong users 2677 Jul 22 20:28 backup.tar.Z -rw-r--r-- 1 herong users 376 Jul 22 20:27 file list -rw-r--r-- 1 herong users 40 Aug 19 10:18 hello.c -rw-r--r-- 1 herong users 0 Jul 21 21:56 new file %uncompress -c backup.tar.Z | tar -t a.out file list hello.c new file
Table of Contents
2002 - .NET Framework Developed by Microsoft
1995 - PHP: Hypertext Preprocessor Created by Rasmus Lerdorf
1995 - Java Language Developed by Sun Microsystems
1991 - WWW (World Wide Web) Developed by Tim Berners-Lee
1991 - Gopher Protocol Created by a University of Minnesota Team
1984 - X Window System Developed a MIT Team
1984 - Macintosh Developed by Apple Inc.
1983 - "Sendmail" Mail Transfer Agent Developed by Eric Allman
1979 - The Tcsh (TENEX C Shell) Developed by Ken Greer
1978 - Bash (Bourne-Again Shell) Developed by Brian Fox
►1978 - The C Shell Developed by Bill Joy
Command Line History Substitution
Command Line Alias Substitution
►Command Line Input and Output Redirection
Command Line Variable Substitution
".cshrc" - C Shell Script File and
1977 - The Bourne Shell Developed by Stephen Bourne
1977 - Apple II Designed by Steve Jobs and Steve Wozniak
1976 - vi Text Editor Developed by Bill Joy
1974 - Internet by Vinton Cerf
1972 - C Language Developed by Dennis Ritchie
1971 - FTP Protocol Created by Abhay Bhushan
1970 - UNIX Operating System Developed by AT&T Bell Labs