Precisely Speaking

Training and Education => U2 Programming Questions => Topic started by: DonQuixote on February 19, 2019, 02:25:13 PM

Title: File types 32Bit & 64bit
Post by: DonQuixote on February 19, 2019, 02:25:13 PM
We have learned the wonderful benefits of 64bit static files; no size limitation and greater speed.
All of our maintenance reports are searching for files approaching the 2GB size so that we can change them to dynamic.
With 64bit static files that is no longer necessary.   The problem is how to identify a 64bit files from a 32bit static files.
I asked Prelude and they said the only way is running 'guide' the first item indicates standard or 64bit file type in GUIDE_STATS.LIS
Does anyone have a better way to identify file type?
Title: Re: File types 32Bit & 64bit
Post by: precisonline on April 10, 2019, 09:35:27 PM
fileview -p1 filename

This will return information about the file.  Here's a script function that will return files over 1.5G that are 32-bit:



find_big_files() {
        for i in `find . -size +1500M`;do
                BIT32=`fileview -p1 $i | grep "32-bit"`
                if [[ -n "$BIT32" ]];then
                        echo $i
                fi
        done
}