#!/bin/sh if [ $# != 2 ] ; then echo untar dir file echo cd into dir, untar file else cd $1 && tar zxf $2 fi