With the data on file z1, the command:
produces:
On a system like:
And more details on pcregrep:
This really has nothing to do with csh, but I ran it under csh to make sure it worked in this instance.
Hi all,
I have a problem in handling files through C.
here is the problem im having:
i will query the database (for instance consider employees table )
for empno,ename,job,salary fields.The query returns me some 100 of rows. now i need to place them in a file in row wise pattern as they... (3 Replies)
Hi all,
I got a little issue here. Imagine that I have more than one process accessing one file. Is it possible to know which process(es) are accessing that file when I open the file??
Thanks for the help.
Best regards,
Ernesto (2 Replies)
Hi,
I have a log file which runs into 3 to 5 GB.
We store this typically for 6 months. When a new month starts we move the previous month into a 9 month back up log (file.9m) and delete the last month of the 9 month back up.
Iam using awk to find the data and cat to join the files like... (3 Replies)
sir i have to get first line from a file
for example
>cat file1
abc
zxc
asd
adsf
from that file1 i need only first line
expected result
>abc
please help me ! (1 Reply)
my input for a script is another csv file
but in that file say 7 lines are there ...
how can i get line by line to that input
for example :
>cat link.csv
www.yahoo.com,yahoo
www.google.com,google
www.unix.com,unix
another file
in that file i need to ping the above links
... (2 Replies)
I have been doing automation of daily check activity for a server, i have been using sqls to retrive the data and while loop for reading the data from the file for several activities. BUT i got a show stopper the below one.. where the data is getting store in $temp_file, but not being read by while... (1 Reply)
$# some text
$$ some text
$@ some text
$$. some text
Mg1 some text
Mg2 some text
.
.
.
Mg10 some text
The above 10 lines are to be extracted except the lines starting from $#,$$.,... (4 Replies)
Specifically on RHEL 5.7.
When does the underlying ksh process open and close files? Every time they're accessed, or as little as possible?
Say you have some script like:
CreateFiles()
{
grep "<VALUE1>" ${infile} >> ${outfile}
grep "<VALUE2>" ${infile} >> ${outfile}
...... (4 Replies)
Hi Team,
I am trying to cut a large file into multiple files. It has
Header
50,050 records
Trailer
-------------------------------------------
I need to cut the files into multiple files of 1000 records and should have the same header and trailer as the original files.
... (4 Replies)
I have a file
1
298167
298168
1093209
1093210
1422663
I want to write a code where in I want to read contents of above file
like first read is 1
second read is 298167
Substract second read from first and if this is greater than or less than 99,999.
Similarly I want to traverse thru... (3 Replies)
Discussion started by: Guru148
3 Replies
LEARN ABOUT OSX
net::dns::text
Net::DNS::Text(3) User Contributed Perl Documentation Net::DNS::Text(3)NAME
Net::DNS::Text - Domain Name System text representation
SYNOPSIS
use Net::DNS::Text;
$object = new Net::DNS::Text('example');
$string = $object->string;
$object = decode Net::DNS::Text( $data, $offset );
( $object, $next ) = decode Net::DNS::Text( $data, $offset );
$data = $object->encode;
$text = $object->value;
DESCRIPTION
The "Net::DNS::Text" module implements a class of text objects with associated class and instance methods.
Each text object instance has a fixed identity throughout its lifetime.
METHODS
new
$object = new Net::DNS::Text('example');
Creates a text object which encapsulates a single character string component of a resource record.
Arbitrary single-byte characters can be represented by followed by exactly three decimal digits. Such characters are devoid of any
special meaning.
A character preceded by represents itself, without any special interpretation.
decode
$object = decode Net::DNS::Text( $buffer, $offset );
( $object, $next ) = decode Net::DNS::Text( $buffer, $offset );
Creates a text object which represents the decoded data at the indicated offset within the data buffer.
The argument list consists of a reference to a scalar containing the wire-format data and offset of the text data.
The returned offset value indicates the start of the next item in the data buffer.
encode
$data = $object->encode;
Returns the wire-format encoded representation of the text object suitable for inclusion in a DNS packet buffer.
value
$value = $text->value;
Returns the character representation of the text object.
string
$string = $text->string;
Returns the escaped string representation of the text object.
BUGS
Coding strategy is intended to avoid creating unnecessary argument lists and stack frames. This improves efficiency at the expense of code
readability.
Platform specific character coding features are conditionally compiled into the code.
COPYRIGHT
Copyright (c)2009-2011 Dick Franks.
All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
perl, Net::DNS, RFC1035, RFC3629, Unicode Technical Report #16
perl v5.16.2 2012-01-27 Net::DNS::Text(3)