Its not a problem with cygwin, sed or awk. Its the way inputfile is handled. The inputfile is handled line by line by sed and awk. So, that's why it didn't find <\/a>\\n\\t\\n\\t\\t<\/a> in a single line.
You may change your approach. Try this perl one-liner:
This User Gave Thanks to balajesuri For This Post:
I am new to unix and lerning tru cygwin (unix simulation on windows)
i am trying to lern sed command and want to interchange first and second no in a string. What i mean is
i want gauri 1234 556 to gauri 556 1234
i am getting the following error
$ echo gauri 1234 556 | sed s/\(*\)... (2 Replies)
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)
Hi,
Is there really a difference between these two, std::hex and ios::hex??
I stumbled upon reading a line, "std::ios::hex is a bitmask (8 on gcc) and works with setf(). std::hex is the operator". Is this true?
Thanks (0 Replies)
I have a binary (hex) file I need to parse to get some data which are encoded this way:
.* b4 . . . 01 12 .* af .* 83 L1 x1 x2 xL 84 L2 y1 y2 yL
By another words there is a stream of hexadecimal bytes (in my example separated by space for better readability). I need to get value stored in... (3 Replies)
Hello,
I want to send tcpflow dump to a TCP port in HEX data, to send with netcat i need to convert to HEX and add \\x before each HEX bytes, to do this i use this line:
tcpflow -i -C dst port | xxd -p | sed 's/../&\\\\x/g;s/ $//' | nc the output on the listening end:... (3 Replies)
I have windows XP machine.
Today i have tried to install Cygwin, I've downloaded all the packages then ran the setup. It's showed completed.
But when i try to open this it's not working.
Do i need to do anything extra for this..?
Please help... (3 Replies)
I have a simple script which will send a curl request and redirect the output to a log file.
for i in {1..20}
do
curl google.com -is >>log.log &
echo "request # $i" >> log.log
doneAfter it completes the execution, if I run the following command I should see 20 lines because I am printing... (4 Replies)
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)
File lalo.txt contains: Á
I need to replace Á by A using sed command.
od -x lalo.txt
0000000 c10a
0000002
sed -e 's/\xc1\x0a/A/g' lalo.txt > lalo2.txt
Also tried:
sed -e 's/\xc3\x81/A/g' lalo.txt > lalo2.txt
Output file lalo2.txt still has Á
Unix version: SunOS 5.11 ... (9 Replies)
Hi,
I'm looking to split the following hex string into rows of four elements.
I've tried the following but it doesn't seem to work. How can I tell sed to match based on a pair of number(s) and letter(s), and add a newline every 4 pairs?
In addition, I need to add another newline after every... (5 Replies)
Discussion started by: sand1234
5 Replies
LEARN ABOUT FREEBSD
bcmfw
BCMFW(8) BSD System Manager's Manual BCMFW(8)NAME
bcmfw -- firmware download utility for Broadcom BCM2033 chip based Bluetooth USB devices
SYNOPSIS
bcmfw [-h] -f firmware_file_name -m mini-driver_file_name -n device_name
DESCRIPTION
The bcmfw utility downloads the specified mini-driver and firmware files to the specified device.
This utility will only work with Broadcom BCM2033 chip based Bluetooth USB devices. The identification is currently based on USB vendor
ID/product ID pair. The vendor ID should be 0x0a5c (USB_VENDOR_BROADCOM) and the product ID should be 0x2033.
Due to copyright issues I will no longer provide mini-driver and firmware files for the device. These files can be obtained from the Linux
BlueZ bluez-firmware package.
Visit http://www.bluez.org/download.html for details.
I am using the following files from the bluez-firmware-1.0 package:
MD5 (BCM2033-MD.hex) = 5580317158d07fc4ace90af04f8e1c73
MD5 (BCM2033-FW.bin) = b4e142b3272cfe5a84b32fda6b4b032f
The options are as follows:
-f firmware_file_name
Specify firmware file name for download.
-h Display usage message and exit.
-m mini-driver_file_name
Specify mini-driver file name for download.
-n device_name
Specify device name.
FILES
BCM2033-MD.hex Mini-driver image.
BCM2033-FW.bin Firmware image.
/dev/ubtbcmfwN.EE Endpoint EE of device N.
EXIT STATUS
The bcmfw utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
To download the firmware into the /dev/ubtbcmfw0 device:
bcmfw -n ubtbcmfw0 -m BCM2033-MD.hex -f BCM2033-FW.bin
SEE ALSO ubtbcmfw(4), ugen(4)AUTHORS
Maksim Yevmenkin <m_evmenkin@yahoo.com>
BUGS
Most likely. Please report if found.
BSD March 31, 2003 BSD