CS246 Lecture Notes - Lecture 1: Standard Streams, Regular Expression, Pipeline (Computing)
Document Summary
1 summary: general administration, i/o redirection and pipelining, bash scripting. For loops: regular expressions vs globbing. 2 general administration: introduction, basic layout of tutorials, try to use piazza instead of email, private posts, if you have not yet nished assignment 0 please do so. 3. 1 redirection: > - redirect stdout to a le, >> - redirect stdout and append it to the end of a le, < - redirect the content of a le to stdin. 3. 2 pipelining: | - allows you to use the output of one command as the input for another. 3. 3 examples: problem 1: given a the le 10lines. txt print the lines 3 through 6, problem 2: solve problem 1 using only head and tail. /bin/bash: look through login, look through . profile. 4. 2 variables: 0 - returns the number of arguments that were passed into the script.