source: BOOK/filesize.sh @ b8b43ee

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since b8b43ee was cc73be6, checked in by Jim Gifford <clfs@…>, 14 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.