64 bits file


 
Thread Tools Search this Thread
Operating Systems HP-UX 64 bits file
# 1  
Old 02-14-2005
Tools 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!
# 2  
Old 02-14-2005
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
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. What is on Your Mind?

Use of bits.....

Hi Friends.. Can anyone explain me the usage of bits.... I am unable to understand ..... I've moved this to a more appropriate forum on the board. Please consider where you are posting. (2 Replies)
Discussion started by: bharat1211
2 Replies

2. What is on Your Mind?

Place Bits & Win Bits!!! - 17th Annual Satellite Awards

Ten movies have been nominated as best motion picture by the International Press Academy, presentation of the 2012 Satellite Awards will be held on 16th December at Los Angeles, CA. Place your bits here on one of the below nominated movie of your choice:- Argo ... (0 Replies)
Discussion started by: Yoda
0 Replies

3. UNIX for Dummies Questions & Answers

32 bits procesaor with 64 bits Solaris

people i have a problem i have a 32 bits sparc processor, and solaris 64 bits processor, i install a oracle data base 64 bits, but my oracle will not run because my processor is from 32 bits this is ok??, i know if i have x86 i cannot install a 64 bits operatin system in a 32 bits processor. ... (0 Replies)
Discussion started by: enkei17
0 Replies

4. Post Here to Contact Site Administrators and Moderators

Bits

My bits count is increasing and decreasing frequently. I haven't get infractions at present. But my bits count is getting increasing and decreasing frequently. Previously it was not like that. May know the reasons please? Thanks in Advance. (3 Replies)
Discussion started by: thillai_selvan
3 Replies

5. AIX

How to convert a partition usin 64 bits kernel to 32 bits kernel?

Hello there: I know that exist a procedure to convert an OS using 32bits kernel to 64 bits kernel. But, exist a procedure to convert an OS using 64bits to 32 bits kernel? Please help me. Regards. (2 Replies)
Discussion started by: GEIER
2 Replies

6. UNIX for Dummies Questions & Answers

Changing 24 bits to 8 bits display

Hello all, I was wondering if anyone can tell me how to change 24 bits depth display to 8 bits depth display for Sun Ultra1, running Solaris 8? THANKS in advance. I think that the command is ffbconfig, but it has nothing about depth. (4 Replies)
Discussion started by: larry
4 Replies
Login or Register to Ask a Question