Math-Tuttle-OSX:279lect10-2 smtuttle$ PS1="${PS1}\n--> "
Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> cd ../..
Math-Tuttle-OSX:f12cs279 smtuttle$ 
--> ls -R
279clickers	279info-form	279misc
279exams	279labs		279syllabus
279homeworks	279lectures	279work

./279clickers:
279clicker-questions-to-post
import-to-moodle.txt
import-to-moodle.txt~

./279clickers/279clicker-questions-to-post:
279week01-1lab-questions.html
279week01-2-questions.html
279week02-1-questions.html

...<chopped WAY too long, but DEFINITELY recursively-visiting
    all subdirectories, output...>...

Math-Tuttle-OSX:f12cs279 smtuttle$ 
--> cd 279lectures/
Math-Tuttle-OSX:279lectures smtuttle$ 
--> cd 279lect10-2
Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls
#279lect10-2-projected.txt#
279lect10-2-projected.txt
279lect10-2-projected.txt~
279lect10-2.odt
279lect10-2.pdf
linux-stuff.txt
loopy-print.sh
loopy-print.sh~
loopy.txt
numbers.txt
test1.txt
test10.txt
test2.txt
test3.txt
test3.txt~
test4.txt
test5.txt
test6.txt
test7.txt
test8.txt
test9.txt
unix-stuff.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ln -s loopy.txt linky.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> mkdir stuff

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls -F
#279lect10-2-projected.txt#
279lect10-2-projected.txt
279lect10-2-projected.txt~
279lect10-2.odt
279lect10-2.pdf
linky.txt@
linux-stuff.txt
loopy-print.sh*
loopy-print.sh~*
loopy.txt
numbers.txt
stuff/
test1.txt*
test10.txt
test2.txt*
test3.txt*
test3.txt~*
test4.txt*
test5.txt*
test6.txt
test7.txt
test8.txt
test9.txt
unix-stuff.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls test*.txt
test1.txt	test4.txt	test8.txt
test10.txt	test5.txt	test9.txt
test2.txt	test6.txt
test3.txt	test7.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls -l test*.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test1.txt
-rw-r--r--  1 smtuttle  smtuttle  29 Oct 25 07:51 test10.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test2.txt
-rwx------  1 smtuttle  smtuttle  48 Oct 25 07:52 test3.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test4.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test5.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test6.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test7.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test8.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test9.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> vi test1.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls -l
total 1136
-rw-r--r--  1 smtuttle  smtuttle     722 Oct 25 15:22 279lect10-2-projected.txt
-rw-r--r--  1 smtuttle  smtuttle      45 Oct 25 15:10 279lect10-2-projected.txt~
-rw-r--r--@ 1 smtuttle  smtuttle   11776 Oct 24 23:59 279lect10-2-q1-braille.doc
-rw-r--r--@ 1 smtuttle  smtuttle   53402 Oct 24 23:43 279lect10-2-q1-braille.odt
-rw-r--r--@ 1 smtuttle  smtuttle   11776 Oct 24 23:57 279lect10-2-q2-braille.doc
-rw-r--r--@ 1 smtuttle  smtuttle   53414 Oct 24 23:56 279lect10-2-q2-braille.odt
-rw-r--r--@ 1 smtuttle  smtuttle  133633 Oct 25 14:48 279lect10-2.odt
-rw-r--r--@ 1 smtuttle  smtuttle  222561 Oct 25 14:49 279lect10-2.pdf
lrwxr-xr-x  1 smtuttle  smtuttle       9 Oct 25 15:17 linky.txt -> loopy.txt
-rw-r--r--  1 smtuttle  smtuttle     305 Oct 25 09:13 linux-stuff.txt
-rwx------  1 smtuttle  smtuttle     352 Oct 25 08:57 loopy-print.sh
-rwx------  1 smtuttle  smtuttle     349 Oct 25 08:56 loopy-print.sh~
-rw-r--r--  1 smtuttle  smtuttle      32 Oct 25 09:01 loopy.txt
-rw-r--r--  1 smtuttle  smtuttle     111 Oct 25 07:48 numbers.txt
drwxr-xr-x  2 smtuttle  smtuttle      68 Oct 25 15:17 stuff
-rwx------  1 smtuttle  smtuttle      56 Oct 25 15:23 test1.txt
-rw-r--r--  1 smtuttle  smtuttle      29 Oct 25 07:51 test10.txt
-rwx------  1 smtuttle  smtuttle      27 Oct 25 07:51 test2.txt
-rwx------  1 smtuttle  smtuttle      48 Oct 25 07:52 test3.txt
-rwx------  1 smtuttle  smtuttle      27 Oct 25 07:51 test3.txt~
-rwx------  1 smtuttle  smtuttle      27 Oct 25 07:51 test4.txt
-rwx------  1 smtuttle  smtuttle      27 Oct 25 07:51 test5.txt
-rw-r--r--  1 smtuttle  smtuttle      27 Oct 25 07:51 test6.txt
-rw-r--r--  1 smtuttle  smtuttle      27 Oct 25 07:51 test7.txt
-rw-r--r--  1 smtuttle  smtuttle      27 Oct 25 07:51 test8.txt
-rw-r--r--  1 smtuttle  smtuttle      27 Oct 25 07:51 test9.txt
-rw-r--r--  1 smtuttle  smtuttle     288 Oct 25 09:13 unix-stuff.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls -l test*.txt
-rwx------  1 smtuttle  smtuttle  56 Oct 25 15:23 test1.txt
-rw-r--r--  1 smtuttle  smtuttle  29 Oct 25 07:51 test10.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test2.txt
-rwx------  1 smtuttle  smtuttle  48 Oct 25 07:52 test3.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test4.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test5.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test6.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test7.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test8.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test9.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> vi test10.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls -l test*.txt
-rwx------  1 smtuttle  smtuttle  56 Oct 25 15:23 test1.txt
-rw-r--r--  1 smtuttle  smtuttle  29 Oct 25 07:51 test10.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test2.txt
-rwx------  1 smtuttle  smtuttle  48 Oct 25 07:52 test3.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test4.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test5.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test6.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test7.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test8.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test9.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls -lu test*.txt
-rwx------  1 smtuttle  smtuttle  56 Oct 25 15:23 test1.txt
-rw-r--r--  1 smtuttle  smtuttle  29 Oct 25 15:24 test10.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test2.txt
-rwx------  1 smtuttle  smtuttle  48 Oct 25 07:52 test3.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test4.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test5.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test6.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test7.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test8.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test9.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> vi test7.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls -lu test*.txt
-rwx------  1 smtuttle  smtuttle  56 Oct 25 15:23 test1.txt
-rw-r--r--  1 smtuttle  smtuttle  29 Oct 25 15:24 test10.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test2.txt
-rwx------  1 smtuttle  smtuttle  48 Oct 25 07:52 test3.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test4.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test5.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test6.txt
-rw-r--r--  1 smtuttle  smtuttle  52 Oct 25 15:26 test7.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test8.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test9.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls -t test*.txt
test7.txt test5.txt	test2.txt
test1.txt test6.txt	test4.txt
test3.txt test8.txt
test10.txt	test9.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls -lt test*.txt
-rw-r--r--  1 smtuttle  smtuttle  52 Oct 25 15:26 test7.txt
-rwx------  1 smtuttle  smtuttle  56 Oct 25 15:23 test1.txt
-rwx------  1 smtuttle  smtuttle  48 Oct 25 07:52 test3.txt
-rw-r--r--  1 smtuttle  smtuttle  29 Oct 25 07:51 test10.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test5.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test6.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test8.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test9.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test2.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test4.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls -lut test*.txt
-rw-r--r--  1 smtuttle  smtuttle  52 Oct 25 15:26 test7.txt
-rw-r--r--  1 smtuttle  smtuttle  29 Oct 25 15:24 test10.txt
-rwx------  1 smtuttle  smtuttle  56 Oct 25 15:23 test1.txt
-rwx------  1 smtuttle  smtuttle  48 Oct 25 07:52 test3.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test6.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test8.txt
-rw-r--r--  1 smtuttle  smtuttle  27 Oct 25 07:51 test9.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test2.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test4.txt
-rwx------  1 smtuttle  smtuttle  27 Oct 25 07:51 test5.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls -tF | grep "\*$"
test1.txt*
loopy-print.sh*
loopy-print.sh~*
test3.txt*
test5.txt*
test2.txt*
test3.txt~*
test4.txt*

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> more numbers.txt 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> head numbers.txt
1
2
3
4
5
6
7
8
9
10

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> head -n 3 numbers.txt
1
2
3

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls -tF | grep "\*$" | head -n 5 
test1.txt*
loopy-print.sh*
loopy-print.sh~*
test3.txt*
test5.txt*

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> tail numbers.txt
31
32
33
34
35
36
37
38
39
40

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> tail -n -5 numbers.txt
36
37
38
39
40

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> tail -n 5 numbers.txt
36
37
38
39
40

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> tail -n +5 numbers.txt
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> tail -c 5 numbers.txt
9
40

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> emacs loopy-print.sh

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> rm loopy.txt
remove loopy.txt? y

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> loopy-print.sh 1 2 3 4 5 6 7 8 9 0 moo oink 10 15 20 &
[1] 48275

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> tail -f loopy.txt
1
2
3
4
5
6
7
8
9
0
moo
oink
10
15
20
^C
[1]+  Done                    loopy-print.sh 1 2 3 4 5 6 7 8 9 0 moo oink 10 15 20

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> cat | tail -f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16^D
7D
8
9
10
11
12
13
14
15
16

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls | tail -n 15
loopy.txt
numbers.txt
stuff
test1.txt
test10.txt
test2.txt
test3.txt
test3.txt~
test4.txt
test5.txt
test6.txt
test7.txt
test8.txt
test9.txt
unix-stuff.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls | tail -c 15
unix-stuff.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> tail -15 numbers.txt
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> tail -5 numbers.txt
36
37
38
39
40

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls | tail 15
tail: 15: No such file or directory

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> ls tail +15
ls: +15: No such file or directory
ls: tail: No such file or directory

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> tail +15 numbers.txt
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> emacs unix-stuff.txt 

[1]+  Stopped                 emacs unix-stuff.txt

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> sed -e 's/UNIX/Linux/g' unix-stuff.txt
This is a file about Linux.
Linux at the beginning of a line,
and at the end: Linux
With multiple Linux instances on some Linux lines, really Linux, oh yeah.
Linux
all by itself, and 
Linux Linux consecutive.
What about deLinux and Linuxify? What'll happen?
We'll see! Linux Linux Linux LinuxLinux Linux!

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> sed -e 's/UNIX/Linux/' unix-stuff.txt
This is a file about Linux.
Linux at the beginning of a line,
and at the end: Linux
With multiple Linux instances on some UNIX lines, really UNIX, oh yeah.
Linux
all by itself, and 
Linux UNIX consecutive.
What about deLinux and UNIXify? What'll happen?
We'll see! Linux UNIX UNIX UNIXUNIX UNIX!

Math-Tuttle-OSX:279lect10-2 smtuttle$ 
--> sed -e 's/UNIX/Linux/2' unix-stuff.txt
This is a file about UNIX.
UNIX at the beginning of a line,
and at the end: UNIX
With multiple UNIX instances on some Linux lines, really UNIX, oh yeah.
UNIX
all by itself, and 
UNIX Linux consecutive.
What about deUNIX and Linuxify? What'll happen?
We'll see! UNIX Linux UNIX UNIXUNIX UNIX!