The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to convert a partition usin 64 bits kernel to 32 bits kernel? GEIER AIX 2 08-18-2008 12:20 AM
Processor bits anuragbirje UNIX for Dummies Questions & Answers 1 02-06-2006 09:54 PM
AIX Bits and Pieces bakunin AIX 0 12-07-2005 07:20 AM
low-order seven bits solea UNIX for Advanced & Expert Users 2 10-05-2004 11:18 PM
Changing 24 bits to 8 bits display larry UNIX for Dummies Questions & Answers 4 03-05-2002 08:51 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-14-2005
Registered User
 

Join Date: Feb 2005
Location: Canada
Posts: 133
Cool 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!
Reply With Quote
Forum Sponsor
  #2  
Old 02-14-2005
Registered User
 

Join Date: Feb 2005
Location: Canada
Posts: 133
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0