Hello
I have a abc.txt file which semicolon delimited. I need to read the first line of the abc.txt file where i need to extract specific string which at specific location.
i.e first line of the abc.txt file is as below
abc;123;xyz;345;678
my requirement is i need to get the 678. I was... (7 Replies)
Hello. I have a large file that contains a lot of gibberish and also a lot of http addresses. How can i read the file, take out the http addresses, and write each one of them on one line each into another file?
It looks something like this.
... (1 Reply)
Can someone tell me how I can do this?
e.g:
Say file1.txt contains:
today is monday
the 22 of
NOVEMBER
2010
and file2.txt contains:
the
11th
month
of
How do i replace the word NOVEMBER with (5 Replies)
Hi
I have requirement to find nth occurrence in a file and capture data from with in lines (between lines)
Data in File.
<QUOTE>
<SESSION>
<ATTRIBUTE NAME='Parameter Filename' VALUE='file1.parm'/>
<ATTRIBUTE NAME='Service Name' VALUE='None'/>
</SESSION>
<SESSION>
<ATTRIBUTE... (6 Replies)
Hello,
I have a 100 line code. I have given a sample of it below:
ABC*654654*1*54.54*21.2*87*1*654654654654
CCC*FS*FS*SFD*DSF
GGG*FGH*CGB*FBDFG*FGDG
ABC*654654*1*57.84*45.4*88*2*6546546545
CCC*WSF*SG*FGH*GHJ
ADA*AF*SFG*DFGH*FGH*FGTH
I need to select the line starting with "ABC" its... (6 Replies)
Hello,
I have a 100 line code. I have given a sample of it below:
ABC*654654*1*54.54*21.2*87*1*654654654654
CCC*FS*FS*SFD*DSF
GGG*FGH*CGB*FBDFG*FGDG
ABC*654654*1*57.84*45.4*88*2*6546546545
CCC*WSF*SG*FGH*GHJ
ADA*AF*SFG*DFGH*FGH*FGTH
I need to select the line starting with "ABC" its... (3 Replies)
Hi friends,
I have a file where I should search for a string and get the rest of the line but without the delimiter using awk.
for example I have the series of string in a file:
input_string.txt
bbb
ccc
aaa
and the mapping file looks like this.
mapping.txt
aaa|12
bbb|23
ccc|43... (11 Replies)
Hi ,
i have a file with data as below.This is same file. But actual file contains to many rows.
i want to search for a string "Field 039 00" and delete that line and previous 3 lines in that file.. Can some body suggested me how can i do using either sed or awk command ?
Field 004... (7 Replies)
Hello
I would like to get know how to do this:
I got a big file (about 1GB) and I need to find a string (for instance by grep )
and then find all records in this file based on a string.
Thanks for advice.
Martin (12 Replies)
Hello guys, would you please help me with this?
this is the line inside a file:
first line Something Today YYDDPPSVXIPYYY0XXXOFFS00000000000?
I'd like to find the position of string XXX from string PYYY
In the example above
XXX starts from 6th position from PYYY
desired... (4 Replies)
Discussion started by: netrom
4 Replies
LEARN ABOUT DEBIAN
addr2name
ADDR2NAME(1) User's Manual ADDR2NAME(1)NAME
addr2name, name2addr - perform DNS lookups from scripts
SYNOPSIS
addr2name [-46cmnr] [HOSTNAMES]
name2addr [-46cn] [HOSTNAMES]
DESCRIPTON
Write addresses or canonical hostname of specified names to the standard output. If no names are specified via the command line, they are
read from the standard input.
OPTIONS -4 or --ipv4
Only try to perform IPv4 lookups.
-6 or --ipv6
Only try to perform IPv6 lookups.
-c or --config
Only lookup and print results for address families that match locally configured addresses (If the system has no IPv4 resp IPv6
address, then IPv4 resp IPv6 addresses are ignored).
-h or --help
Display some help and exit.
-m or --multiple
Normally, if a name yields multiple results, only the first one is printed. With this optional parameter, all results will be
printed on a single line, separated by spaces.
-n or --numeric
Prevent forward hostname lookup. This ensures that the input names are numeric addresses, which do not need to be looked up. Typi-
cally used along with the --reverse option to convert numerical addresses to canonical hostnames.
-r or --reverse
Perform a reverse DNS lookup (enabled implicitly with addr2name). addr2name prints numerical resolved addresses by default instead.
--version
Display program version and license and exit.
SEE ALSO host(1), getaddrinfo(3), getnameinfo(3), resolv.conf(5)AUTHOR
Remi Denis-Courmont <remi at remlab dot net>
$Id: addr2name.1 658 2010-10-31 20:56:30Z remi $
http://www.remlab.net/ndisc6/
addr2name $Date: 2010-10-31 22:56:30 +0200 (dim. 31 oct. 2010) $ ADDR2NAME(1)