Final additions to the UNIX102 page, including another bash script
and a few changes to the text.
This commit is contained in:
parent
711b990949
commit
8da87db763
|
@ -1,3 +1,3 @@
|
||||||
FILES = index.html cheatsheet.pdf unix101.pdf vim_exercise.tar appender.sh tickets_email.sh queue.txt
|
FILES = index.html cheatsheet.pdf unix101.pdf vim_exercise.tar appender.sh tickets_email.sh walkc.sh queue.txt
|
||||||
RELDIR = unix102/
|
RELDIR = unix102/
|
||||||
include ../common.mk
|
include ../common.mk
|
||||||
|
|
|
@ -7,19 +7,19 @@
|
||||||
|
|
||||||
<section title="UNIX 102 Reference Material">
|
<section title="UNIX 102 Reference Material">
|
||||||
<p>
|
<p>
|
||||||
<!-- http://programmerryangosling.tumblr.com/ -->
|
This page contains some <a href="http://programmerryangosling.tumblr.com/">links</a> to material covered during UNIX 101 and 102,
|
||||||
This page contains some links to material covered during UNIX 101 and 102,
|
|
||||||
as well as some extracurricular content for you to review in your free
|
as well as some extracurricular content for you to review in your free
|
||||||
time.
|
time.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
The text file for the great editor race is available <a href="queue">here</a>.
|
The text file for the great editor race is available <a href="queue.txt">here</a>.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
To begin with the first exercise, you will need the following file.
|
To begin with the first exercise, you will need the following file.
|
||||||
To download it, execute the following command:
|
To download it and untar it, execute the following commands:
|
||||||
<pre>
|
<pre>
|
||||||
wget http://csclub.uwaterloo.ca/unix102/vim_exercise.tar
|
wget http://csclub.uwaterloo.ca/unix102/vim_exercise.tar
|
||||||
|
tar -xvf vim_exercise.tar
|
||||||
</pre>
|
</pre>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
@ -58,11 +58,11 @@
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Simple script whose parameters are any number of text files, that will
|
<li>Simple script whose parameters are any number of text files, that will
|
||||||
print all the files and filenames to standard output: appender</li>
|
print all the files and filenames to standard output: <a href="appender.sh">appender</a></li>
|
||||||
<li>RunC clone, that takes in a filename and executes all the tests it
|
<li>RunC clone, that takes in a filename and executes all the tests it
|
||||||
can find for it in the current directory: WalkC</li>
|
can find for it in the current directory: <a href="walkc.sh">WalkC</a></li>
|
||||||
<li>Script that scrapes concert website for tickets and sends emails/text
|
<li>Script that scrapes concert website for tickets and sends emails/text
|
||||||
messages when tickets are available: tickets_email</li>
|
messages when tickets are available: <a href="tickets_email.sh">tickets_email</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
reference, of course. As well, here's an article I found claiming to list
|
reference, of course. As well, here's an article I found claiming to list
|
||||||
the <a href="http://sixrevisions.com/resources/git-tutorials-beginners/">top 10 git tutorials</a>.
|
the <a href="http://sixrevisions.com/resources/git-tutorials-beginners/">top 10 git tutorials</a>.
|
||||||
Whether or not that's true, you should still learn something.
|
Whether or not that's true, you should still learn something.
|
||||||
Here is also a brief review of the commands we covered today.
|
Here is also a brief review of the commands we intended to cover today.
|
||||||
</p>
|
</p>
|
||||||
<p> This clones a copy of the codebase for you to work on locally:
|
<p> This clones a copy of the codebase for you to work on locally:
|
||||||
<pre>
|
<pre>
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BASE=`basename $1 .c`
|
||||||
|
|
||||||
|
gcc -Wall $1 -o $BASE
|
||||||
|
|
||||||
|
for TEST in $BASE.in.*
|
||||||
|
do
|
||||||
|
OUT=`echo -n $TEST | sed -e s/in/out/`
|
||||||
|
./$BASE < $TEST > $OUT
|
||||||
|
done
|
Loading…
Reference in New Issue