krungkuene.org

back
to please me link this page
or look at my newest art stuff on my site --->
freedom fight for creativity
krung's knowledge pages

seite in deutsch

published: 2003-09-04 created: 2003-05-28

related pages: various shell scripte

archme

archme is a script to archive files and folders.

the input is a folder. the script creates a .tgz file, 
a file list of the content, and a md5sum.

there is also a comment file ..

download

archme.sh

archme.sh.gz


                                                                   
#!/bin/bash
#
# V 0.1.0 030528 archme.sh
# Licence: GPL
#
#  #  # 
#  # #
#  #     ##  #  #  ##   ##     ##   ##   ##
#  # #  #  # #  # #  # #  #   #  # #  # #  #
#  #  # #     ##  #  #  ### #  ##  #     ###
#                         #                #
#        martin         ##     krung     ##
#
# ++++++++++++++++++++++++++++++++++++++++++++++++
#
#  macht *.tgz *.lst *.md5 *.com
#
#  useage:
#
#  archme file ohne slash \"text of comment\"
#
#  to do:
# / am ende wegnehmen

FILE=$1
echo \"diese file wird bearbeitet:\" $FILE

echo \"mache $FILE.tar ...\"
time tar -cf $FILE\".tar\" $FILE

echo \"mache $FILE.tgz.lst ...\"
time tar -tvf $FILE\".tar\" > $FILE\".tgz.lst\"

echo \"mache $FILE.tgz ...\"
time gzip -9 $FILE\".tar\"

echo \"benenne $FILE.tar.gz zu FILE.tgz ...\"
time mv $FILE\".tar.gz\" $FILE\".tgz\"

echo \"mache md5sum von $FILE.tgz nach FILE.tgz.md5 ...\"
time md5sum $FILE\".tgz\" >  $FILE\".tgz.md5\"

echo \"schreibe commentar in $FILE.tgz.com ...\"
COMMENT=$2
time echo $COMMENT >  $FILE\".tgz.com\"


Valid HTML 4.01! Creative Commons License