![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Processor bits | anuragbirje | UNIX for Dummies Questions & Answers | 2 | 02-23-2009 06:37 AM |
| How to convert a partition usin 64 bits kernel to 32 bits kernel? | GEIER | AIX | 2 | 08-18-2008 03:20 AM |
| AIX Bits and Pieces | bakunin | AIX | 0 | 12-07-2005 10:20 AM |
| low-order seven bits | solea | UNIX for Advanced & Expert Users | 2 | 10-06-2004 02:18 AM |
| Changing 24 bits to 8 bits display | larry | UNIX for Dummies Questions & Answers | 4 | 03-05-2002 11:51 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|