07-28-2012
thanx neutronscott.....but if we are equating '!a[$1]++-==0' , its only printing the duplicate value and if we are doing '!a[$1]++==1' it is printing the first occurrence. how is that happening???
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I have 4 array as below
Input:
servernames=(10.144.0.129 10.144.0.130 10.144.0.131)
subfolder_129=(PSTN_SigtranCamel_03 PSTN_SigtranCamel_04 PSTN_SigtranCamel_05)
subfolder_130=(SigtranCamel_11 SigtranCamel_12 SigtranCamel_13 SigtranCamel_14 SigtranCamel_15)... (4 Replies)
Discussion started by: sushmab82
4 Replies
2. Shell Programming and Scripting
Hi all,
i have a data array as follows.
array=ertfgj2345
array=456ttygkd
.
.
.
array=errdjt3235
so number or elements in the array can varies depending on how big the data input is.
now i have a variable, and it is $1 (there are $2, $3 and so on, i am only interested in $1).
... (9 Replies)
Discussion started by: usustarr
9 Replies
3. Shell Programming and Scripting
dear all,
i have file with format like this
file_master.txt
20110212|231213|rio|apri|23112|222222
20110212|312311|jaka|dino|31223|543234
20110301|343322|alfan|budi|32131|333311
...
i want filter with output like this
index_nm.txt
rio|apri
jaka|dino
...
index_years.txt
20110212... (7 Replies)
Discussion started by: zvtral
7 Replies
4. Shell Programming and Scripting
hello guys,
I have a file like this:
input.dat
Push-to-talk
No
Coonection
IP support
Support for IP telephony
Yes
Built-in SIP stack
Yes
Support via software
Yes
Microsoft
Support for Microsoft Exchange
Yes
UMA (5 Replies)
Discussion started by: Johanni
5 Replies
5. Shell Programming and Scripting
Hello experts,
I'm stuck with this script for three days now. Here's what i need.
I need to split a large delimited (,) file into 2 files based on the value present in the last field.
Samp: Something.csv
bca,adc,asdf,123,12C
bca,adc,asdf,123,13C
def,adc,asdf,123,12A
I need this split... (6 Replies)
Discussion started by: shell_boy23
6 Replies
6. Shell Programming and Scripting
Hello All,
Can you please help me with the below.
#!/bin/bash
ARR="No Differences In Stage Between HASH_TOTALS & HASH_TOTALS_COMP For UNINUM:0722075 PROVIDER:5 EXTRACT_DT:30-SEP-12 VER_NUM:1"
ARR="No Differences In Stage Between HASH_TOTALS & HASH_TOTALS_COMP For UNINUM:0722075 PROVIDER:5... (14 Replies)
Discussion started by: Ariean
14 Replies
7. Shell Programming and Scripting
Hello All,
I have data like this in a column.
0
1
2
3
0
3
4
5
6
0
1
2
3
etc. where 0 identifies the start of a pattern in my data.
So I need the output like below using either awk/sed.
0 1 (2 Replies)
Discussion started by: ks_reddy
2 Replies
8. Shell Programming and Scripting
Hi All
I think I might have bitten off more than I can chew here and I'm hoping some of you guys with advanced pattern matching skills can help me.
What I want to do is index the occurrence of variable names within a library of scripts that I have. Don't ask why, I'm just sad like that...
... (3 Replies)
Discussion started by: bbq
3 Replies
9. UNIX for Dummies Questions & Answers
Hello,
This is pretty simple, I`m looking for a faster and better method than brute force that I`m doing.
I have a 20GB file looks like
Name1,Var1,Val1
Name1,Var2,Val2
Name2,Var1,Val3
Name2,Var2,Val4
I want 3 files.
Nameindex
1 Name1
2 Name2
... (2 Replies)
Discussion started by: senhia83
2 Replies
10. Shell Programming and Scripting
Hi
Does anyone know of an efficient way to index a column of data in file2 to print the coresponding row in file1 which corresponds to the data in file2 AND 30 rows preceding and after the row in file1.
For example suppose you have a list of numbers in file2 (single column) as follows:... (6 Replies)
Discussion started by: Geneanalyst
6 Replies
rlprd(8) UNIX Reference Manual rlprd(8)
NAME
rlprd - remote printing proxy daemon
SYNOPSIS
rlprd [-nqV] [-pport] [-ttimeout] [--debug]
DESCRIPTION
rlprd is a proxy which runs between the remote printing commands (rlpr(1), rlpq(1), and rlprm(1)) and standard lpd print servers in situa-
tions where the remote printing commands cannot be installed setuid root. For a discussion on how to configure the remote printing com-
mands, please see rlpr(1).
rlprd needs to be installed setuid root - if it cannot be run this way, it is useless.
rlprd works by mapping non-privileged port requests from rlpr(1) clients to privileged ports so that lpd's will listen to them. Eliminat-
ing the "security" gained by having privileged ports is a non-issue, since the Internet is no longer just Unix, and Unix is the only OS
that has the privileged port concept.
rlprd is not a replacement for lpd(8). It merely passes data to a lpd(8) on a target machine (which is specified by an invocation of a
remote printing command). However, when a client is using the rlpr suite of tools to do remote printing, the client does not need to run
an lpd(8) locally.
Note that once an rlprd is set up on a network (including the Internet), any host may connect to it and use its proxy services if it knows
the name of the machine running it.
OPTIONS
--debug
Print gobs of debugging information.
-n, --no-daemon
Don't run rlprd as a daemon. Usually not needed.
-p, --port=number
Select an alternate port (instead of 7290) to listen on. Usually not needed.
-q, --quiet, --silent
Quiet mode - stay quiet (except for fatal errors).
-t --timeout=seconds
Set the inactivity timer. If the connection hangs for more than seconds seconds, then rlprd will time out the connection. Use the
special value `-1' to wait forever. Default timeout is 3 seconds.
-V, --version
Print version and exit.
SEE ALSO
rlpr(1), rlpq(1), rlprm(1), rlprrc(5)
AUTHOR
meem <meem@gnu.org>
BUGS
/LIMITATIONS
It is not currently possible to run rlprd from inetd(8).
rlpr 2.04 1999/10/28 rlprd(8)