Changeset 78a84e5 for BOOK/filesize.sh
- Timestamp:
- Feb 20, 2009, 4:21:51 AM (16 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 987e04d7
- Parents:
- b8b43ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/filesize.sh
rb8b43ee r78a84e5 8 8 exit 255 9 9 else 10 FILESIZE=$( stat -c%s ${FILENAME})10 FILESIZE=$(ls -l ${FILENAME} | cut -f5 -d' ') 11 11 ((size=${FILESIZE}/1024)) 12 if [ "${size}" = "0" ]; then 13 size=$(echo .$(echo ${FILESIZE} | cut -b1)) 14 fi 12 15 FILEMD5SUM=$(md5sum ${FILENAME}) 13 16
Note:
See TracChangeset
for help on using the changeset viewer.