Author Topic: File types 32Bit & 64bit  (Read 357 times)

DonQuixote

  • Rock Star
  • *****
  • Posts: 198
  • To Dream the Impossible Dream...
File types 32Bit & 64bit
« 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?

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1609
    • Precision Solutions
Re: File types 32Bit & 64bit
« Reply #1 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
}

-Kevin
Accidents "happen"; success, however, is planned and executed.