![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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! |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |