Search Results

Search: Posts Made By: wulfric
480,525
Posted By wulfric
FILE="path of your file" FILESIZE="`du -b $FILE...
FILE="path of your file"
FILESIZE="`du -b $FILE | sed 's:^\([0-9]*\)*[[:space:]]*.*:\1:'`"

if [ "$FILESIZE" = "487" ];then
echo "$FILE has size 487 bytes"
else
echo "Some other filesize"...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 05:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy