10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
I have a txt file containing millions of lines. Below is the example:
{tx:be} head -50 file.txt
Instr1: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Instr1:... (6 Replies)
Discussion started by: Zam_1234
6 Replies
2. Shell Programming and Scripting
dHi,
I have the attached file(actual file can be extracted post unzipping it) & i am trying to use the following code for coversion to hex format.
Starting hex value is 84 which is start of the record & termination is done using 00 00 followed by 84(hex) which i can see in the dump clearly using... (14 Replies)
Discussion started by: siramitsharma
14 Replies
3. Shell Programming and Scripting
Assume I have a file \usr\home\\somedir\myfile123.txt
and I want to replace all occurencies of the two (concatenated) hex values x'AD' x'A0' bytwo other (concatenated) hex values x'20' x'6E'
How can I achieve this with the gnu sed tool?
Additional question: Is there a way to let sed show... (1 Reply)
Discussion started by: pstein
1 Replies
4. Shell Programming and Scripting
Dear Experts,
I have one binary file which contains multiple 31k (31744) records.
Each record begins with "a6 82".
So the pattern is:
a6 82 (+31742 bytes)
a6 82 (+31742 bytes)
a6 82 (+31742 bytes)
a6 82 (+31742 bytes)
There are some corrupted files where record does... (6 Replies)
Discussion started by: dhiraj4mann
6 Replies
5. Shell Programming and Scripting
Folks,
can anyone help with a script to convert hex to binary digits, and break the 32 bit binary into packs of 4 and send them to 8 different variables.Any help is sincerely appreciated.
Thanks
venu
Its in korn shell...... (24 Replies)
Discussion started by: venu
24 Replies
6. Programming
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
7. Shell Programming and Scripting
i have a file named tt which has content:
dd=/cc/vv/bb
i want to edit it by a script which will give as follows:
dd=/cc/vv/bb/tt
i tried sed -i -e 's/dd="/cc/vv/bb"/dd="/cc/vv/bb/tt"/' tt
can any one pls help me on this? (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies
8. Shell Programming and Scripting
i want to output something like
2f 00 00 00
but i can't seem to escape characters like i'm used to in some programming languages, so with this:
echo "/\0\0\0" >> outputfile
i actually get
2f 5c 30 5c 30 5c 30 0a
ie the \0 isn't giving me the 00 i need, and in addition it has got an... (8 Replies)
Discussion started by: peterworth
8 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am new to UNIX. I have a text file where each line ends on the hexadecimal character "0A". In the file there are some records that contain the Hex characters "0D0A" which I need to replace by Hex "20".
Is there a simple way to do this?
Regards,
Swanie (3 Replies)
Discussion started by: Swanie
3 Replies
10. Shell Programming and Scripting
not much familiar with binary and hex calculation in script programming....
explaination:
binary format control the parameter turned on or off in the program stored in hex mode, the question is:
how to change 39e to 19e using the binary calculation(although i don't know the command for... (2 Replies)
Discussion started by: trynew
2 Replies