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
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. AIX
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
3. Post Here to Contact Site Administrators and Moderators
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
4. UNIX for Dummies Questions & Answers
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
5. What is on Your Mind?
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
6. What is on Your Mind?
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
LEARN ABOUT DEBIAN
iofits
iofits(1) General Commands Manual iofits(1)
NAME
iofits - FITS data format conversion (pixel depth)
SYNOPSIS
iofits [options] <in_fits> <out_fits> <depth>
DESCRIPTION
iofits converts FITS files of any pixel depth to another pixel depth (bits per pixel). Depth is given as in the FITS norm :
o 8 bits per pixel, unsigned.
o 16 bits per pixel, signed
o 32 bits per pixel, signed
o -32 IEEE floating point
o -64 IEEE double precision floating point
OPTIONS
-v Verbose mode.
-M megs
Memory handling. To avoid saturate memory for huge cubes, this parameter specifies the maximum amount of memory to use before swap-
ping data to disk. The amount is given in Megabytes. (1Meg = 1,048,576 Bytes) The process time is then considerably slowed down.
Default value is 50 megs.
FILES
Input/output files shall all comply with FITS format.
The original FITS header of the input FITS file is conserved along, except for the following keywords: NAXIS, NAXISn, BITPIX, BSCALE,
BZERO, which are related to the newly created file.
HISTORY keywords are appended to the FITS header to indicate the eclipse process modifications, together with the command line which was
used to generate the file.
SEE ALSO
average, filt, deadpix
BUGS
In general, decreasing the resolution in number of bits per pixel almost always means loss of precision. No rescaling is done on the data,
use this command with care!
25 Feb 1997 iofits(1)