Sunday, July 20, 2014

Linux/Unix - Interacting with a shell

Shell in Linux/Unix

I/O Redirection

Pipes

Filters

Valid and Invalid redirections

Background commands

Composing commands

Grouping Commands

Features of C shell

Exercise 3b

Using pipes, display all lines of list1 and list2 containing the letter 'p', and sort the result.
Answer available here

Summary

Command Meaning
command > file redirect standard output to a file
command >> file append standard output to a file
command < file redirect standard input from a file
command1 | command2 pipe the output of command1 to the input of command2
cat file1 file2 > file0 concatenate file1 and file2 to file0
sort sort data
who list users currently logged in

References

0 comments:

Post a Comment