Search This Blog

Wednesday, November 17, 2010

shell script

This script read a directory, zip the directory, and create directory.zip file.
And it send the zip file to specific location in my Mac computer using scp.

==========

#!/bin/sh
echo $1
zip -r $1 $1
scp $1.zip albertsk@stokes.eng.hawaii.edu:/Users/albertsk/Desktop/On-going/Presentations/APS-DFD/simulations/

No comments:

Labels