CSCB09H3 Lecture Notes - Lecture 2: Standard Streams, Grep, User Friendly

148 views8 pages
22 Mar 2015
School
Course

Document Summary

Software tools: non-software tools, multi-purpose, example: you can hit anything with a hammer, software, large program with many features but if implementers didn"t think of a feature you wanted, it"s not easily added. Software tools idea: writing small, simple programs which do one thing well and having powerful and general ways to combine them, unix, connect programs using a pipe . Kernel data structure which is a buffer but has the special property that it can be used for i/o redirection: command > file . Runs command but with its standard output redirected into the file file : cmd1 | cmd2 . Standard output of cmd1 connected into the pipe and standard input of cmd2 connected as to come out of the pipe. Command performs some successive transformation on the data: example: given a text file called faculty of department faculty members. Sort -k2 faculty : sorts by last name instead of first name.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents