The "backtick" operators strip out the newlines and replace them with spaces, so yeah, that's a problem for you. You need to do something like this instead:
I have a text file with 50 munbers.
I wanna read these numbers and append "@yahoo.com" and send emails to them using shell scripting..........
How do i read the inetegres from the text file. (1 Reply)
Guys,
I am trying to read text from a file, into arrays.
The format of the file is:
@DATABASE
femotest
@PACKAGE_SPECS
/usr/home/oracle92/sosa/scripts/test.pks
/usr/home/oracle92/sosa/scripts/rep.pks
@PACKAGE_BODIES
... (12 Replies)
Hi
Im MZ.... please help me with my requirements.....
Requirement: I have a text file named information.txt which contains information about Oracle Instances, I want to fetch data's from that text file and want to display an output using shell script.
Explanation : i.e. when I execute that... (0 Replies)
How can i have a while loop as follows
while read inputline
do
<task>
done < name_list
and also store the values (delimited) on each line to temp variables so as to print them on screen as follows
while read inputline
do
set name | cut -d "," -f1 name_list # #i know this is not... (1 Reply)
hello all ,
im trying to read a text file and display its contents. While i got the code running and the output was displayed perfectly for sometime , i started getting Abort(core dump) error . Am i missing something here ? im using HP-UX.
#include <iostream.h>
#include <fstream.h>
#include... (1 Reply)
I am having a text file
best = 100
genre = 75
group = 53
.
.
and so on
I need to read those values (100,75,53,...) from my shell script. I have to do the same function for all the variables. So in my script i used for loop to do the same.
for {
a=best
b=100
}
Video tutorial on... (3 Replies)
Hi All,
Need your help!!
I have particular host file with below format:
172.34.45.67 Host1 Host2
134.45.56.67 Host3 Host4 Host5
I need shell script snippet which read this file and change the format of the file to the below format
172.34.45.67 Host1
172.34.45.67 ... (9 Replies)
Hi all,
I have a text file that has (4) columns. There are about 300 lines on this file. It is a plain text file. I am looking to write a simple script that will read each line from the file and generate another text file. The file looks something like this:
These are the columns:
... (4 Replies)
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (4 Replies)
Hello Team,
I have 2 files.one contains english text and another contains Japanese. so i have to read english text and replace the text with Japanesh text in third file.
Basically, I need a help to write japanese language in text/xml file.I heard wstring does this.Not sure how do i write... (2 Replies)
Discussion started by: SA_Palani
2 Replies
LEARN ABOUT MOJAVE
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;
Character string representation of the text object.
string
$string = $text->string;
Conditionally quoted zone file 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.18.2 2014-01-16 Net::DNS::Text(3)