file base of asc and hdr must match then only it should add latitude, longitude, etc...to main file, solution given by pamu is working fine, but to process number of files I have to include for loop, so I had asked...if anybody knows any good book or link to learn shell scripting please put link, I am very poor, in shell scripting..I know only C...
---------- Post updated at 03:28 AM ---------- Previous update was at 03:07 AM ----------
actually header file is having more information when I tried with another file I got wrong result....
Pamu's script reads, full header file, it should not read actually it has to filter out only particular information only...
they are ship,cruise,station, lat,long,DEPTH(SONIC),DEPTH(CAST),sst, and cast
-----
still some texts are there...not including...
Pls help....
Last edited by Scott; 12-03-2012 at 03:15 PM..
Reason: Code tags
hi all,
In an mp3 file , data is arranged in sequence of header and data ,how to retrieve data between two headers. Is the data between two headers fixed? because as per theory it says 1152 samples will be there , but dont knw how many bits one sample correspond to?
it would help if any c... (2 Replies)
I have a file with data extracted, and need to insert a header with a constant string, say: H|PayerDataExtract
if i use sed, i have to redirect the output to a seperate file like
sed ' sed commands' ExtractDataFile.dat > ExtractDataFileWithHeader.dat
the same is true for awk
and... (10 Replies)
Hi All,
I am having an XML tag like:
<detail sim_ser_no_1="898407109001000090"
imsi_1="452070001000090">
<security>ADM1=????</security>
<security>PIN1=????</security>
<security>PIN2=????</security>
... (2 Replies)
hi people;
this is my file1.txt:192.168.1.1
192.168.1.2
192.168.1.3
192.168.1.4
...
this is my file2.txt:portnames
usernames
maxusercap
...
i want to write to file3.txt:l ./getports 192.168.1.1 'get all;l+;get . portnames;l-'
l ./getports 192.168.1.1 'get all;l+;get . usernames;l-'... (4 Replies)
Hi friend i have input as following XML file
<?xml version="1.0"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.054.001.02">
<BkToCstmrDbtCdtNtfctn>
<GrpHdr><MsgId>LBP-RDJ-TE000000-130042430010001001</MsgId><CreDtTm>2013-01-04T03:21:30</CreDtTm></GrpHdr>... (3 Replies)
Hi,
How can I combine the data of of three files into one new file?
I try to give as much informations as possible.
The three existing files are called file1 file2 and file3
the new file should named output_combined.
The size of the files will be around 900 words/lines each .. but always... (5 Replies)
The below bash is a file validation check executed that will verify the correct header count of 10 and the correct data type in each field of the tab-delimited file. The key has the data type of each field in it. My real data has 58 headers in it but only the header and next row need to be... (6 Replies)
Discussion started by: cmccabe
6 Replies
LEARN ABOUT DEBIAN
anyevent::xmpp::ext::pubsub
AnyEvent::XMPP::Ext::Pubsub(3pm) User Contributed Perl Documentation AnyEvent::XMPP::Ext::Pubsub(3pm)NAME
AnyEvent::XMPP::Ext::Pubsub - Implements XEP-0060: Publish-Subscribe
SYNOPSIS
my $con = AnyEvent::XMPP::Connection->new (...);
$con->add_extension (my $ps = AnyEvent::XMPP::Ext::Pubsub->new);
...
DESCRIPTION
This module implements all tasks of handling the publish subscribe mechanism. (partially implemented)
METHODS
new This is the constructor for a pubsub object. It takes no further arguments.
delete_node($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback
Try to remove a node.
create_node ($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback
Try to create a node.
subscribe_node($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback
Try to retrieve items.
unsubscribe_node($con, $uri, $bc)> $con is the connection already established, $uri is the name of the node to be created $cb is the
callback
Try to unsubscribe from a node.
publish_item($con, $uri, $create_cb, $cb) $con is the connection already established, $uri is the name of the node to be created $create_cb
is the callback $cb is the callback
Try to publish an item.
retrive_items($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback
Try to retrieve items.
retrive_item($con, $uri, $id, $cb) $con is the connection already established, $uri is the name of the node to be created $id is the id of
the entry to be retrieved $cb is the cb
Try to retrieve item.
AUTHOR
Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>"
CONTRIBUTORS
Chris Miceli - additional work on the pubsub extension
COPYRIGHT & LICENSE
Copyright 2007, 2008 Robin Redeker, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-23 AnyEvent::XMPP::Ext::Pubsub(3pm)