suppose i have one file
file A
18
24
30
35
38
45
55
Another file file B
08_46 A 16 V -0.36 0.23 E : 1.41
08_46 A 17 D -1.04 0.22 E : 0.84
08_46 A 18 Q -0.49 0.12 E : 0.06
08_46 A 19 G 0.50 0.14 E : 0.05
08_46 A 20 V ... (5 Replies)
the data file is as below:
> cat master.cnf
/usr| location for usr|5
/src/ver1| version 1 |10
/src/ver2/log| ver 2 log |25
/src/sys/apps/log| Application log for sys|36
/src/sys/apps/conf| configuration location for app|45
/src/sys/apps/bin| binary location app|55my script is as below:
... (1 Reply)
Hello,
I'm trying to grab all lines in a file that match the extension using the following command:
awk '/.doc/' Input.csv > WordFiles.dat
This works, but if a line contains "doc" it still prints the line. I want to print only the lines with ".doc"
Can someone show how to pick up only... (1 Reply)
Hello.
I've been banging my head against walls trying to search a comma delimited file, using awk. I'm trying to search a "column" for a specific parameter, if it matches, then I'd like to print the whole line.
I've read in multiple texts:
awk -F, '{ if ($4 == "string") print $0 }'... (2 Replies)
I have multiple config files where I need to pull the ip address from loopback3. The format is the same in every file, the ip is the second line after interface loopback3.
interface loopback2 loopback
description router ID
ip address 192.168.1.1
interface loopback3 loopback
description... (3 Replies)
I have a script where I need to use awk, go through some output, which is stored in a variable, and find a string Xms and Xmx and print the results, including the rest of that string.
Example of string:
... (3 Replies)
I have a file which is
DFDG
START
DSFDS
DSDS
XXX
END (VIO)
AADD
START
SDSD
FGFG
END
and I have to print the lines between START and END (VIO). In the files there are multiple places where START would be followed by END with few lines in between but I need to print only if START is... (18 Replies)
Using hp-ux's shell, I'm trying to echo a complex awk command into a script file for later use. But it fails on a newline character and splits the rest of the command onto the next line.
echo ' printf("%s: TOTAL = %18.0lf\n", FILENAME, TOTAL) >> "TOTAL.TXT";' >>awk.script
Looks... (3 Replies)
Coins.txt:
gold 1 1986 USA American Eagle
gold 1 1908 Austria-Hungary Franz Josef 100 Korona
silver 10 1981 USA ingot
gold 1 1984 Switzerland ingot
gold 1 1979 RSA Krugerrand
gold 0.5 1981 RSA Krugerrand
gold 0.1 1986 PRC Panda
silver 1 1986 USA Liberty dollar
gold 0.25 1986 USA Liberty... (2 Replies)
GOODNUMBERS="1 2 3 4 5 6 3 3 34 34 5 66 12"
BADNUMBERS="7 3 12 5 66"
for eachnum in `echo ${GOODNUMBERS}`
do
echo ${BADNUMBERS} | gawk -v threshold=${eachnum} '$1 != threshold'
done
what im trying to do with the above is, i want to print numbers that are in the GOODNUMBERS... (10 Replies)
Discussion started by: SkySmart
10 Replies
LEARN ABOUT DEBIAN
in.identtestd
IN.IDENTTESTD(8) Library functions IN.IDENTTESTD(8)NAME
in.identtestd - a small daemon that can be used to test Ident servers
SYNOPSIS
in.identtestd
DESCRIPTION
in.identtestd is a small daemon (to be started from inetd) that does an ident lookup on you if you telnet into it. Can be used to verify
that your Ident server is working correctly.
The source code can be found in the debian libident source package, as ident-tester.c.
EXAMPLE
A typical entry in /etc/inetd.conf would be:
9999 stream tcp nowait root /usr/sbin/in.identtestd in.identtestd
With the above entry in place and active, execute "telnet hostname 9999" from either this system, or another system. It should show some-
thing like:
Trying hostname...
Connected to hostname.
Escape character is '^]'.
Welcome to the IDENT server tester, version 1.9
(Linked with libident 0.22 Debian)
Connecting to Ident server at 192.168.1.1...
Querying for lport 1109, fport 9999....
Reading response data...
Userid response is:
Lport........ 1109
Fport........ 9999
Opsys........ UNIX
Charset...... <not specified>
Identifier... paul
Connection closed by foreign host.
AUTHOR
Peter Eriksson <pen@lysator.liu.se>
Manpage written for debian by Paul Slootman <paul@debian.org>.
SEE ALSO ident(3), identd(8), tcpd(8)3rd Berkeley DistributionIN.IDENTTESTD(8)