source: BOOK/filesize.sh@ cc73be6

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since cc73be6 was cc73be6, checked in by Jim Gifford <clfs@…>, 16 years ago

Fixed File Sizes. Order of Packages.ent. Fixed naming of Bootscripts

  • Property mode set to 100755
File size: 312 bytes
Line 
1#!/bin/bash
2
3FILENAME=$1
4
5if [ "${FILENAME}" = "" ]; then
6 echo "To Calculate the proper file size use the following command."
7 echo "$0 filename"
8 exit 255
9else
10 FILESIZE=$(stat -c%s ${FILENAME})
11 ((size=${FILESIZE}/1024))
12 FILEMD5SUM=$(md5sum ${FILENAME})
13
14 echo "${size} KB"
15 echo "${FILEMD5SUM}"
16fi
Note: See TracBrowser for help on using the repository browser.