A simple shell written in C that supports redirection and piping
Nathan Kamm, Tyler Gearing, Ezio Ballarin
To build the shell, run
make
Then you can run the shell from the current directory using the two executables
./lobo-shell.x - runs the shell with basic functionality
./ec.x - runs the shell with extended functionality
lobo-shell.x supports some basic commands like
ps -u yourusername
who | wc -l
ls /usr/bin | head -10 | tail -5
wc -l < [inputfile]
who > [outputfile]
wc -l < [inputfile] >> [outputfile]
tr "A-Z" "a-z" < [inputfile] | tr -cs "a-z" '\012' | sort | uniq -c | sort -nr | head -1 > [outputfile]
ec.x supports commands in this form, as well as commands in all the forms listed under lobo-shell.x
who 1>[filename]
who 2>[filename]
who 2>[filename] 1>&2
who > [filename] 2>&1
To run provided unit tests run
make
./test
To clear the output files and executables use
make clean