Sponsored Content
Full Discussion: Binary Files
Top Forums UNIX for Dummies Questions & Answers Binary Files Post 8668 by devildivine on Tuesday 16th of October 2001 11:09:15 AM
Old 10-16-2001
Question Binary Files

Does any one know how to view a binary file as it is (in 1s and 0s) on unix environment?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Binary Files

Here's the problem... I'm using a simulator on UNIX, and it requires a filename where bits are stored, it should read them out and do whatever with them at that point.. So what i'm trying to do is make a binary file on UNIX. On my PC i can use MSDEV, or any of my C++ compilers to generate a... (2 Replies)
Discussion started by: wcRandThor
2 Replies

2. UNIX for Advanced & Expert Users

Files Linked With A Binary

Hi, What is command in unix to find what are all the files linked with an executable binary. Thanks in advance. Rgds, Omkumar (2 Replies)
Discussion started by: tc.omkumar
2 Replies

3. UNIX for Dummies Questions & Answers

Joining two or more binary files together

Is there a way to join two or more binary files together without corrupting the data? I've searched the forums, and googled etc. but the only commands that get mentioned are 'cat', which only works for text files and 'join'. According to the man pages join is a 'relational database operator',... (5 Replies)
Discussion started by: Boothy
5 Replies

4. Shell Programming and Scripting

search for files excluding binary files

Hi All, I need a solution on my following find command find ./.. -name '*.file' -print BTW This gives me the output as belows ./rtlsim/test/ADCONV0/infile/ad0_dagctst.file ./rtlsim/test/ADCONV0/user_command.file ./rtlsim/test/ADCONV0/simv.daidir/scsim.db.dir/scsim.db.file... (2 Replies)
Discussion started by: user_prady
2 Replies

5. Shell Programming and Scripting

Reg : binary files

HI Friends, My actual requirement is to find out the binary files except txt/gif from parent and subdirectories. so,i have to write unix shell script. Any one please suggest me on this how to write script for this or any other alternate way is there to find out. Thanks & Regards, Srujana (13 Replies)
Discussion started by: srujana
13 Replies

6. UNIX for Dummies Questions & Answers

Comparison between binary files

Hello, I would like to know if we can compare binary(non text) files in unix eg. exes Thanks Saurabh (3 Replies)
Discussion started by: smehra_20
3 Replies

7. Programming

Editing binary files

I am working in C and need a solution for below problem: I have a binary file, which needs to be edited in such a way no data is loss. For example i have to insert 3 bytes of data at some position without changing the contents of the file. if file has data as:... (2 Replies)
Discussion started by: junaid.nehvi
2 Replies

8. Shell Programming and Scripting

Binary files

Hi All,Is there anyway I can conver the binary file to ascii. I don't know the binary file format. file command just lists this as "data" file and when I view it has a lot of non-printable characters.Can I write any command equivalent to wc -l to find out the number of rows in the file?Can I use... (4 Replies)
Discussion started by: rahulkav
4 Replies

9. Programming

reading binary files

#include <stdio.h> /* typedef struct { char name; int number; float balance; } acct_info_t; */ int main() { FILE *fptr; fptr = fopen("acct_info", "r"); int magic = 5; fseek(fptr,3,SEEK_SET); fread(&magic,sizeof(int),1,fptr);... (7 Replies)
Discussion started by: robin_simple
7 Replies

10. UNIX for Advanced & Expert Users

Binary files diff

Hi I am very happy to joined this group!!! I need your suggestion for get it resolved my issue. I have two class files both class files are same, there is no diff in both two files. Both 2 files were compiled in Linux environment with different type of OS. When i am using diff command,... (13 Replies)
Discussion started by: suresh1256644
13 Replies
GENKLEMSAMP(1)						      General Commands Manual						    GENKLEMSAMP(1)

NAME
genklemsamp - generate ray samples over surfaces using Klems BSDF basis SYNOPSIS
genklemsamp [ -c N ][ -f{a|f|d} ] [ view opts ] [ geom.rad .. ] DESCRIPTION
Genklemsamp generates ray origins and directions to sample planar surfaces needed to determine incident radiances or daylight coefficients. This command is typically used in conjunction with rtcontrib(1) to analyze exterior daylight coefficients for an annual simulation. The view options are needed to specify (at minimum) the view direction, which corresponds to the orientation of the surfaces, and the view up vector, which corresponds to the azimuth=90-degree position on the Klems sampling hemisphere. The view fore clipping distance is also quite useful, as it provides a means to pass through some thickness in a fenestration system before samples are sent out. Other view options such as the view type and aft clipping distance are overridden or ignored. If no Radiance scene files are provided, then the specified parallel view defines the width, height, center, and orientation of the window or facade of interest. If one or more scene files are given, they are presumed to contain planar surfaces over which genklemsamp will originate samples. The sampled surface normals must correspond to the specified view direction, and unaligned surfaces are silently ignored. The -c option specifies the number of rays to sample per Klems direction. These samples will be distributed evenly over the surface(s). The default setting is 1000. The -ff option specifies that output rays should be generated as 32-bit IEEE binary float values. This may be more efficient if passed directly to rtcontrib or rtrace(1) with the same option. Likewise, the -fd option specifies 64-bit IEEE binary double values. The default setting of -fa produces ASCII floating point values. EXAMPLE
To generate 500 samples per direction over a set of south-facing windows and pass to rtcontrib to compute daylight coefficients in a matrix: genklemsamp -c 500 -vd 0 -1 0 -vu 0 0 1 south_windows.rad | rtcontrib -c 500 -e MF:1 -f reinhart.cal -b rbin -bn Nrbins exterior.oct > Dsouth.dat AUTHOR
Greg Ward SEE ALSO
dctimestep(1), genBSDF(1), genskyvec(1), mkillum(1), rtcontrib(1), rtrace(1), vwrays(1) RADIANCE
6/13/09 GENKLEMSAMP(1)
All times are GMT -4. The time now is 09:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy