Sponsored Content
Full Discussion: Awking binary data
Top Forums Shell Programming and Scripting Awking binary data Post 302993596 by drysdalk on Saturday 11th of March 2017 06:13:20 PM
Old 03-11-2017
Hi,

Can you run the strings command on the binary first ? That should extract all human-readable text from the binary, which you could then do anything else you wanted to.
This User Gave Thanks to drysdalk For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

read binary data on solaris 9

Hello there: First off, Thanks for clicking in. I have some integers stored as binary data. On redhat 9,I could read them just using the system calls open()and read(). And they show as what I expected. And on Solairs, I used the same sys calls. And the binary data were not interpreted as were by... (1 Reply)
Discussion started by: yanhu
1 Replies

2. UNIX for Advanced & Expert Users

Convert Binary data to ascii data

Friends, I've tried on solaris, but I could n't get ascii data dd if=binaryinputfile bs=1 skip=3800 count=4 | od -t u4 output : INDBU3:/usr/users/FTAMUSER/kk $ dd if=SMP20041006173649188151 bs=1 skip=3800 count=4 | od -t u4 4+0 records in 4+0 records out 0000000 0000000000 0000004... (4 Replies)
Discussion started by: krishna
4 Replies

3. UNIX for Dummies Questions & Answers

Binary data to text file conversion

Dear Sir; i want to know how the binary data convert to text file or readablw format (ASCII).If possible pl. help me for the software and where it is available for download. i.e. (1 Reply)
Discussion started by: auro123
1 Replies

4. Programming

appending space in binary data in c

Hi ... I am having a string in the buffer .. It is binary data it may contain space . When i try to append a space in using strcpy it is taking the inbetween \n as the end and appending space .. How to append space in the binary data in C ?? please let me know Thanks in advance, Arun. (2 Replies)
Discussion started by: arunkumar_mca
2 Replies

5. Programming

trying to convert binary data to text using C++

i hav tried to convert binary 2D data into text using binreader and writing into text file using streamwriter. i use ReadSingle() function to convert from binary to ascii, although it works good in 1D data but not in more dimensions. the kind of values i get are -1.265369923E+038 and like ... (2 Replies)
Discussion started by: geet
2 Replies

6. Shell Programming and Scripting

how to check the file data type(ascii or binary)

hi i am receiving a file from one system , i have to verify the format of the file data i.e whether the data is in acii format or binary format, please help thanks in advance satya (1 Reply)
Discussion started by: Satyak
1 Replies

7. Shell Programming and Scripting

Reading Numerical Binary Data using KSH

Hi, I've searched and couldn't find anyone else with this problem. Is there anyway (preferably using ksh - but other script languages would do) that I can read in binary float data into a text file. The data (arrays from various stages of radar processing) comes in various formats, but mainly... (3 Replies)
Discussion started by: Jonny2Vests
3 Replies

8. Programming

writing binary/struct data to file

I am trying to write binary data to a file. My program below: #include <stdlib.h> #include <stdio.h> struct tinner { int j; int k; }; struct touter { int i; struct tinner *inner; }; int main() { struct touter data; data.i = 10; struct tinner... (4 Replies)
Discussion started by: radiatejava
4 Replies

9. Shell Programming and Scripting

Bash - binary data to ascii code

Hello, With bash-script (ubunto server) I'm trying to read a binary file and, for each character, give back its ascii code (including extended ascii). For example: HEX => ASCII => PRINT f5 => 245 => õ 50 => 80 => P To load the binary file into a variable I tried in this way: ... (2 Replies)
Discussion started by: math4
2 Replies

10. Shell Programming and Scripting

Script writing for tables with binary data

Hi There, I'm trying to write a simple script that will email me when we have an application job in a certain status that needs human intervention. I've used this script for other tables and it works great. However, this one gives me the warning that there is binary data so it might not. ... (2 Replies)
Discussion started by: Colel2
2 Replies
BLKIOMON(8)															       BLKIOMON(8)

NAME
blkiomon - monitor block device I/O based o blktrace data SYNOPSIS
blkiomon -I interval [ -h file ] [ -b file ] [ -D file ] [ -Q path_name -q msg_queue_id -m msg_id ] [ -V ] DESCRIPTION
blkiomon is a block device I/O monitor. It periodically generates per-device request size and request latency statistics from blktrace data. It provides histograms as well as data that can be used to calculate min, max, average and variance. For this purpose, it consumes D and C traces read from stdin. There are options for binary output and human-readable output to files and stdout. Output to a message queue is supported as well. There is no need to use blkparse with blkiomon. blkiomon is capable of consuming binary output written to stdout by blktrace. OPTIONS
-I interval --interval=interval Set sample interval -h file --human-readable=file Human-readable output file. Use '-' for stdout. -b file --binary=file Binary output file. Use '-' for stdout. -D file --debug=file Output file for debugging data. Use '-' for stdout. -Q path_name --msg-queue=path_name Sets path_name as path name for existing message queue to be used for binary output. -q msg_queue_id --msg-queue-id=msg_queue_id Sets msg_queue_id as ID for an existing message queue to be used for binary output. -m msg_id --msg-id=msg_id Sets msg_id as message identifier to be used for binary output messages written to an existing message queue. -V --version Print program version. EXAMPLES
To get I/O statistics for /dev/sdw every 10 seconds for a period of one hour, use the following command: % blktrace /dev/sdw -a issue -a complete -w 3600 -o - | blkiomon -I 10 -h - AUTHORS
blkiomon and this man page were written by Martin Peschke. REPORTING BUGS
Report bugs to <linux-btrace@vger.kernel.org> COPYRIGHT
Copyright (C) 2008 IBM Corp. This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
btrace (8), blktrace (8), blkparse (1), verify_blkparse (1), blkrawverify (1), btt (1) July 17, 2008 BLKIOMON(8)
All times are GMT -4. The time now is 10:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy