Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Need to convert bytearray into text2pcap format Post 303036581 by sand1234 on Wednesday 3rd of July 2019 10:38:35 AM
Old 07-03-2019
discussing further with RudiC

Hi RudiC,

Interesting to know - when you say a pointer do you mean a pointer, say in the C programming language? Or just a pointer to the location.

In terms of for loop, I was wondering whether we could change the syntax to be more verbose like this:

Code:
awk -v counter=0000 'BEGIN { for (i = 1; i <= NR; ++i) printf "%04x %s\n, ", counter, $0; counter+=10}'

Additionally I'm not sure what part of the awk statement tells the first column to increment by 10, i.e. from 0000 to 0010. That's why I put a counter+=10 above.

Thanks.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

convert mmddyy date format to ccyyddd format??

hi, for reading a cobol indexed file i need to convert "mmddyy" date format to "ccyyddd" format. i checked the datecalc and other scripts but couldnt modify them to cater to my need:(... The datecalc gives an output which i believe is the total days till that date, but i want to convert it... (2 Replies)
Discussion started by: Bhups
2 Replies

2. UNIX for Advanced & Expert Users

Convert UTF8 Format file to ANSI format

:) Hi i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error Function i used it as $ iconv -f UTF8 -t ANSI filename Error iam getting is NOT Supported UTF8 to ANSI please some help me out on this.........Let me... (1 Reply)
Discussion started by: rajreddy
1 Replies

3. UNIX for Dummies Questions & Answers

Convert UTF8 Format file to ANSI format

:confused: Hi i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error Function i used it as $ iconv -f UTF8 -t ANSI filename Error iam getting is NOT Supported UTF8 to ANSI please some help me out on... (9 Replies)
Discussion started by: rajreddy
9 Replies

4. UNIX for Dummies Questions & Answers

To convert multi format file to a readable ascii format

Hi I have a file which has ascii , binary, binary decimal coded,decimal & hexadecimal data with lot of special characters (like öƒ.ƒ.„İİ¡Š·œƒ.„İİ¡Š· ) in it. I want to standardize the file into ASCII format & later use that as source . Can any one suggest a way a logic to convert such... (5 Replies)
Discussion started by: gaur.deepti
5 Replies

5. Programming

How to convert byteArray variables to HexaString variables for Linux?

Hello everybody, I am having problem in converting byte array variables to Hexa String variables for Linux. I have done, converting byte array variables to Hexa String variables for Windows but same function doesn't work for linux. Is there any difference in OS ? The code for Windows is given... (2 Replies)
Discussion started by: ritesh_163
2 Replies

6. Shell Programming and Scripting

Convert Epoch time format to normal date time format in the same file

I have a file named "suspected" with series of line like these : {'protocol': 17, 'service': 'BitTorrent KRPC', 'server': '219.78.120.166', 'client_port': 52044, 'client': '10.64.68.44', 'server_port': 8291, 'time': 1226506312L, 'serverhostname': ''} {'protocol': 17, 'service': 'BitTorrent... (3 Replies)
Discussion started by: rk4k
3 Replies

7. Shell Programming and Scripting

convert date format to mysql date format in log file

I have a comma delimited log file which has the date as MM/DD/YY in the 2nd column, and HH:MM:SS in the 3rd column. I need to change the date format to YYYY-MM-DD and merge it with the the time HH:MM:SS. How will I got about this? Sample input 02/27/09,23:52:31 02/27/09,23:52:52... (3 Replies)
Discussion started by: hazno
3 Replies

8. UNIX for Dummies Questions & Answers

Convert UNIX file format to PC format

Hi All, Is there any way to convert a file which is in UNIX format to a PC format.... Flip command can be used , apart form this command can we have any other way.... like usinf "awk" etc ..... main purpose of not using flip is that my Kshell doesnot support this comamnd.... (1 Reply)
Discussion started by: Samtel
1 Replies

9. Shell Programming and Scripting

Convert UNIX file format to PC format

Hi All, Is there any way to convert a file which is in UNIX format to a PC format.... Flip command can be used , apart form this command can we have any other way.... like usinf "awk" etc ..... main purpose of not using flip is that my Kshell doesnot support this comamnd.... (2 Replies)
Discussion started by: Samtel
2 Replies

10. Shell Programming and Scripting

perl module to convert xlsx format to xls format

Hi Folks, I have written a perl script that reads data from excel sheet(.xls) using Spreadsheet::ParseExcel module. But the problem is this module doesn't work for excel sheets with extension .xlsx. I have gone through Spreadsheet::XLSX module with which we can read from .xlsx file directly.... (1 Reply)
Discussion started by: giridhar276
1 Replies
TAU_CONVERT(1)							       Tools							    TAU_CONVERT(1)

NAME
tau_convert - convert TAU tracefiles into various alternative trace formats SYNOPSIS
tau_convert [[-alog] [-SSDF] [-dump] [-paraver [-t]] [-pv] [-vampir [ -longsymbolbugfix ] [ -compact ] [[ -user ] [ -class ] [ -all ]] [ -nocomm ]]] [outputtrc] {inputtrc} {edffile} DESCRIPTION
tau_convert is generated when TAU is configured with the -TRACE option. This program requires specification of a TAU tracefile and eventfile. It will convert the given TAU traces to the ASCII-based trace format specified in the first argument. The conversion type specification may be followed by additional options specific to the conversion type. It defaults to the single threaded vampir format if no other format is specified. tau_convert also accepts specification of an output file as the last argument. If none is given it prints the converted data to the standard out. OPTIONS
-alog convert TAU tracefile into the alog format (This format is deprecated. The SLOG2 format is recommended.) -SDDF convert TAU tracefile into the SDDF format -dump convert TAU tracefile into multi-column human readable text -paraver convert TAU tracefile into paraver format -t indicate conversion of multi threaded TAU trace into paraver format -pv convert single threaded TAU tracefile into vampir format (all -vampir options apply) (default) -vampir convert multi threaded TAU tracefile into vampir format -longsymbolbugfix make the first characters of long, similar identifier strings unique to avoid a bug in vampir -compact abbreviate individual event entries -all compact all entries (default) -user compact user entries only -class compact class entries only -nocomm disregard communication events [outputtrc] specify the name of the output tracefile to be produced EXAMPLES
To print the contents of a TAU tracefile to the screen: tau_convert -dump app.trc tau.edf To convert a merged, threaded TAU tracefile to paraver format: tau_convert -paraver -t app.trc tau.edf app.pv SEE ALSO
tau_merge(1), tau2vtf(1), tau2profile(1), tau2slog2(1) 12/22/2005 TAU_CONVERT(1)
All times are GMT -4. The time now is 09:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy