Final additions to the UNIX102 page, including another bash script

and a few changes to the text.
foo
ehashman 11 years ago
parent 711b990949
commit 8da87db763
  1. 2
      unix102/Makefile
  2. 16
      unix102/index.xml
  3. 11
      unix102/walkc.sh

@ -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/
include ../common.mk

@ -7,19 +7,19 @@
<section title="UNIX 102 Reference Material">
<p>
<!-- http://programmerryangosling.tumblr.com/ -->
This page contains some links to material covered during UNIX 101 and 102,
This page contains some <a href="http://programmerryangosling.tumblr.com/">links</a> to material covered during UNIX 101 and 102,
as well as some extracurricular content for you to review in your free
time.
</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>
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>
wget http://csclub.uwaterloo.ca/unix102/vim_exercise.tar
tar -xvf vim_exercise.tar
</pre>
</p>
<p>
@ -58,11 +58,11 @@
</p>
<ul>
<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
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
messages when tickets are available: tickets_email</li>
messages when tickets are available: <a href="tickets_email.sh">tickets_email</a></li>
</ul>
</section>
@ -80,7 +80,7 @@
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>.
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> This clones a copy of the codebase for you to work on locally:
<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…
Cancel
Save