#!/bin/ksh
VAR_ONE=HELLO
TEMP=ONE
echo $VAR_${TEMP}
## Output is: ONE
Hi, I want the output to echo HELLO and not ONE as the above script does. I know I am missing something with dollar substitution. Can anyone help me out ?
Thanks.
Cal (4 Replies)
Hi,
What is the actual difference between these two? Why the following code works for process substitution and fails for command substitution?
while IFS= read -r line; do echo $line; done < <(cat file)executes successfully and display the contents of the file
But,
while IFS='\n' read -r... (3 Replies)
All,
I have this text document that contains a listing(See below).
What i would like to ask is how i could extract just the information i need which is the files name (CWS*****.***.gz)
If anyone has any suggestions i would be very grateful. I am sure its relatively simple but i just... (6 Replies)
Hello, I'm trying to do a substitution in vi. which adds a field for the year to a line.
If the line doesnt include a year, it should still add a field (although empty)
the fields are:
Country:number:number:name(and sometimes year):place
this is a desired in and output:
Sweden:55:32:John... (2 Replies)
Hello everyone ...
I'm going crazy, I hope some of you can help me ...
I have to replace a line in a crontab like this:
5 2 * * 2 root backupdat
with this:
5 5 * * 3 root backupdat
the command I use is the following:
sed -i.bak -e 's/5 2 * * 2 root backupdat/5 5 * * 3 root... (4 Replies)
Hi all
Having issue with substitution using sed
Trying to assign the absolute path of the file to the variable 'floc' returned by the find command
floc=`find / -name $fname`
eg cat $floc '/root/samplecheck/myfile'
I want to replace '/' with '->' in the 'floc' i am using the below sed... (2 Replies)
Hi All,
I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command.
The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Hi,
I'm trying to reformat some badly formatted XML that I've extracted from Oracle clob columns using the following nawk command:
nawk '{gsub(/</,/>\n/); print}' test.raw > test.xml
the substitution executes fine, but instead of subbing < with > followed by newline, it subs the < with a... (3 Replies)
I am trying to do some substitutions using the substitution operator (:%s) in a text file.
I want to replace all A1, A2, A3.......A100 in my text file.
I used :%s/A2/SAE/g successfully until A9 but when I use A1, all the A11 to A19 is changed. How do I specify the exact match here? (8 Replies)
Discussion started by: Kanja
8 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)