Skip to content

Instantly share code, notes, and snippets.

View chris-asl's full-sized avatar

Chris Aslanoglou chris-asl

View GitHub Profile
@chris-asl
chris-asl / moss.sh
Created November 27, 2016 21:05 — forked from panayiotis/moss.sh
# usefull bash commands for moss
# print submission dates
reset; ls -l */*.{tar,gz,rar} | awk '{for(i=6;i<=9;i++)printf "%s ",$i;printf "\n"}' | sort
# unzip archives
find . -type f -name *.tar -print0 | xargs -0 -I file sh -c 'tar -xf file -C `dirname file`'
find . -type f -name *.tar.gz -print0 | xargs -0 -I file sh -c 'tar -xzf file -C `dirname file`'
find . -type f -name *.rar -print0 | xargs -0 -I file sh -c 'unrar -y e file "`dirname file`"'