64 bits file

Hello,

Does anyone know a command that could list all 64bits file under my Unix box (HP-UX). All new files are created 64 bits, but need to know wich one are 64bits or still 32bits.

Tkx!

I have found my answer from someone else but thought some people would like to know so here it is. Make script and call it what ever you like.

#!/usr/bin/sh
find / -type f \( -perm -100 -o -perm -010 -o -perm 001 \) | while read X
do
file "${X}" | grep -q -i "text"
RSLT=${?}
if [[ ${RSLT} -ne 0 ]]
then
file "${X}" | grep -q -i "ELF-64"
RSLT=${?}
if [[ ${RSLT} -eq 0 ]]
then
echo "${X} is 64-bit"
else
echo "${X} is 32-bit"
fi
fi
done