Jabberwocky submission for Computer Organization
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

39 lines
492 B

#!/bin/sh
# Make binary folder
mkdir bin
# Compile
gcc atob.c -g -o bin/atob
gcc jabber.c -g -o bin/jabber
gcc wocky.c -g -o bin/wocky
gcc btoa.c -g -o bin/btoa
# Run in order
./bin/atob ${1} bit.txt
./bin/jabber bit.txt zap.txt
./bin/wocky zap.txt kapow.txt
./bin/btoa kapow.txt out.txt
# Print all
<< ////
echo --${1}--
cat ${1}
echo
echo --bit-${1}--
cat bit.txt
echo
echo --zap-${1}--
cat zap.txt
echo
echo --kapow-${1}--
cat kapow.txt
echo
echo --out.txt--
cat out.txt
echo
////