10-03-2005
Dear Friends,
The code you have given for Extractiong required data from file is working fine.
Thank u for your reply.
I have Extracted this data from file by using this code.
15711 2005/10/03 08:28:25.512 0 1 0B160E 06C67E 0A7F80 04C000 000000 000000 000000 000000 000000 000000 000000 000000 000000
15711 2005/10/03 08:29:57.517 0 1 0BE202 08C37E 007380 04A000 000000 000000 000000 000000 000000 000000 000000 000000 000000
15711 2005/10/03 08:31:29.502 0 1 0B9806 09C4DE 097800 048000 000000 000000 000000 000000 000000 000000 000000 000000 000000
15711 2005/10/03 08:33:01.507 0 1 0BDC0A 0BC5FE 0E7D00 04C000 000000 000000 000000 000000 000000 000000 000000 000000 000000
Now I wanted to write only the Hexadecimal data in separate file like this.
0B160E 06C67E 0A7F80 04C000 000000 000000 000000 000000 000000 000000 000000 000000 000000
from the above data simultaniously I have to leave starting 0 digit in each filed.and write into a separate file.
please provide C code for me
Iam ever thankful to you
regards
rajan
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello!
I need to read a text file containing certains rows and columns!The following is a sample file with only three rows!
01:41:30:00:05:51 OFF 48506649K 5769415 63494357K
01:41:30:00:05:65 ON 4493546K 27266552 5880264K
01:41:30:00:05:78 OFF 614556K 89121 47291K... (1 Reply)
Discussion started by: sandytul
1 Replies
2. Shell Programming and Scripting
I have a file with contents as follows
Record 1: Rejected - Error on table "DWO"."P2G_CUST_EVENTS".
ORA-00001: unique constraint (DWO.CUST_EVENTS_PK) violated
Record 5: Rejected - Error on table "DWO"."P2G_CUST_EVENTS".
ORA-00001: unique constraint (DWO.CUST_EVENTS_PK) violated
Record 6:... (5 Replies)
Discussion started by: varshanswamy
5 Replies
3. Shell Programming and Scripting
This is shell programming assignment.
It needs to create a file called .std_dbrc contains
STD_DBROOT=${HOME}/class/2031/Assgn3/STD_DB
(which includes all my simple database files)
and I am gonna use this .std_dbrc in my script file (read the data from the database files)
like this: .... (3 Replies)
Discussion started by: ccwq
3 Replies
4. Shell Programming and Scripting
Hello, I am using tcsh on AIX.
I would like to write a script that does the following:
1. given an inode, how do I find exactly the name of the file?
I know I could do this using ls -i | grep <inode>
but it returns: <inode> <filename>. I need some string manipulation or something to... (1 Reply)
Discussion started by: lastZenMaster
1 Replies
5. Shell Programming and Scripting
I have list of files in a directory 'dir'. Each file is of type HTML. I need to read each file and get the string which starts with 'http' and write them in a new text file. How can i do this shell scripting?
file1.html
<head>
<url>http://www.google.com</url>
</head>
file2.html
<head>... (6 Replies)
Discussion started by: vel4ever
6 Replies
6. Shell Programming and Scripting
I have a text file
First title line
name1
name2
name3
name4
(etc)
other lines
other lines
other lines
I want to read in this text file and parse the name1...name4 to a variable. How do I specificially read in these lines and these lines only? (10 Replies)
Discussion started by: piynik
10 Replies
7. UNIX for Dummies Questions & Answers
This could be a really dummy question.
I have a log text file.
What unix command to extract line from specific string to another specific string.
Is it something similar to?:
more +/"string" file_name
Thanks (4 Replies)
Discussion started by: aku
4 Replies
8. UNIX for Dummies Questions & Answers
Hello All,
this is my first post so I don't know if I am doing this right.
I would like to append entries from a series of strings (contained in a text file) consecutively at the end of specifically labeled lines in another file.
As an example:
- the file that contains the values to be... (3 Replies)
Discussion started by: gus74
3 Replies
9. UNIX for Dummies Questions & Answers
sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies
10. Shell Programming and Scripting
Hi,
I have a file with below format
myfile.txt
aa
aa1
aa2
qq
aa4
ghs
aa6
bbc
gdf
I m looking to create a file where lines begins with aa.
myfile1.txt
aa
aa1
aa2 (4 Replies)
Discussion started by: Litu1988
4 Replies
LEARN ABOUT FREEBSD
ubtbcmfw
UBTBCMFW(4) BSD Kernel Interfaces Manual UBTBCMFW(4)
NAME
ubtbcmfw -- Firmware driver for Broadcom BCM2033 chip based Bluetooth USB devices
SYNOPSIS
To compile this driver into the kernel, place the following line in your kernel configuration file:
device ubtbcmfw
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
ubtbcmfw_load="YES"
DESCRIPTION
The ubtbcmfw is a firmware driver for Broadcom BCM2033 chip based Bluetooth USB devices. It provides minimal access to the parts of the
device required to download firmware.
The ubtbcmfw driver creates three fixed endpoint device nodes.
The control transfers can only happen on the control endpoint which is always endpoint 0. Control requests are issued by ioctl(2) calls.
Only incoming transfers are supported on an interrupt endpoint. To perform I/O on an interrupt endpoint, read(2) should be used. All I/O
operations on an interrupt endpoint are unbuffered. Interrupt endpoint is always endpoint 1.
Only outgoing bulk transfers are supported on a bulk endpoint. To perform I/O on a bulk endpoint, write(2) should be used. All I/O opera-
tions on a bulk endpoint are unbuffered. Outgoing bulk endpoint is always endpoint 2.
The control endpoint (endpoint 0) handles the following ioctl(2) calls:
USB_GET_DEVICE_DESC (usb_device_descriptor_t)
Return the device descriptor.
FILES
/dev/ubtbcmfwN.EE Endpoint EE of device N.
SEE ALSO
ng_ubt(4), ugen(4), usb(4), bcmfw(8)
HISTORY
The ubtbcmfw driver was implemented in FreeBSD 5.0.
AUTHORS
Maksim Yevmenkin <m_evmenkin@yahoo.com>
BUGS
Most likely. Please report if found.
BSD
November 22, 2006 BSD