10 More Discussions You Might Find Interesting
1. 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
2. UNIX for Dummies Questions & Answers
Hi All,
I have one input file seperated with Hex decimal B1 value.
And i want to process this file. And iam creating an awk script to process this file. How can I specify the Field seperator as HEX B1 in my awk.
Please help.
Thanks in advance.:) (2 Replies)
Discussion started by: psk_kumar
2 Replies
3. Programming
Hi,
I am trying to converting a string containing a hexadecimal format to int using the below code.
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main( ) {
unsigned int num = 0;
istringstream iss(string("0xF"));
iss.setf(ios::hex);
iss... (0 Replies)
Discussion started by: royalibrahim
0 Replies
4. Programming
Hello guys,
i want to convert a text file to hex and have written this code :
int main(int argc, char **argv)
{
ifstream file;
string fileName = "CODEZ";
file.open(fileName.c_str()); // oeffen im Text-Modus
if(file)
{... (5 Replies)
Discussion started by: Kingbruce
5 Replies
5. Programming
Hi All,
My main intension of is to convert the Hexstring stored in a char* into hex and then prefixing it with "0x" and suffix it with ','
This has to be done for all the hexstring char* is NULL.
Store the result prefixed with "0x" and suffixed with ',' in another char* and pass it to... (1 Reply)
Discussion started by: rvan
1 Replies
6. Shell Programming and Scripting
hi all,
echo "ibase=16;obase=10;11" | bc
shouldn't i get 17? i am getting 11
i am trying to convert 11 (hex) to decimal
stuck!
JAK (4 Replies)
Discussion started by: jakSun8
4 Replies
7. 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
8. Shell Programming and Scripting
I need to have my scripts import volume groups and mknod devices files. I have most of the script working but the device file needs to be in the format 0x??0000 (where the question marks are my HEX representations of the volume group number. I have the code below and the output it produces which... (2 Replies)
Discussion started by: insania
2 Replies
9. Shell Programming and Scripting
Hi guys , i would want to count the concurrences of the 0A hex char in a text file , then if no matches i need to add a 0A at the end of the line.
Any ideas?
thx.Regards (1 Reply)
Discussion started by: Klashxx
1 Replies
10. UNIX for Dummies Questions & Answers
How will I display on screen a UNIX ascii file with its HEX equivalent. I want to check whether 0D 0A is coming at the end of the file which I am generating from UNIX. (1 Reply)
Discussion started by: augustinep
1 Replies