zakkak / turnin

turnin is a utility that enables students to turnin assignments using the command line. Requires a setup where each class has a unix account in the computer infrastructure of the school/university.
GNU General Public License v3.0
15 stars 8 forks source link

Add bash script in submissions folder #12

Closed daknob closed 10 years ago

daknob commented 10 years ago

Due to the changes happening usually in the way we compress (and therefore decompress) files, I recommend turnin to create a bash(1) script that accepts one argument, the username and decompresses the file in the proper directory. Example: check user9999 And:

#!/bin/bash
mkdir $1 2> /dev/null > /dev/null
tar <args> $1 -C ./$1/
echo "Decompressed $1 to ./$1"