08-17-2014
What have you actually tried so far?
What type of array is this where the first element is indexed at [1] ?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have an array "arrA" with the following contents:
A0012 Paint Shop.doc
ES001 Contract Signature.doc
Budget Plan.pdf
TS PWS.pdf
My data file "Files.dat" has the same contents:
A0012 Paint Shop.doc
ES001 Contract Signature.doc
Budget Plan.pdf
TS PWS.pdf
I have a script that compares... (0 Replies)
Discussion started by: orahi001
0 Replies
2. Shell Programming and Scripting
Hello everybody, I'm new in this forum.
I searched a long time for a solution for my problem but I didn't find the right thing.
I have to read from a file (content is "abngjm" without any other signs) and have to write this content in an array. But every sign has to be called by its own... (5 Replies)
Discussion started by: e_prof
5 Replies
3. Shell Programming and Scripting
Hi,
I've a file like below:
DeptFile.csv
DeptID EmpID
------- ------
Dep01 Emp01
Dep01 Emp02
Dep01 Emp03
Dep02 Emp04
Dep02 Emp05
I've another file which has
EmpFile.csv
EmpID Salary
------ ------ (3 Replies)
Discussion started by: Matrix2682
3 Replies
4. Shell Programming and Scripting
Hello,
I am working with KSH on AIX and I have 2 files generated from different sources... as seen below:
FILE1 FILE2
AAA AAA@ABS0001C
BBB BBB@ABS0003D
CCC CCC@ABS0023A
DDD DDD@ABC0145D
EEE EEE@ABS0090A
FFF FFF@ABS0002A
GGG GGG@ABC0150D
HHH
FILE1 is main main data source,... (4 Replies)
Discussion started by: right_coaster
4 Replies
5. Shell Programming and Scripting
Hi, as the title, I have an array @f_lines with gene information in it. How can I put the content of @f_lines into a file so that I can read it?
I tried this:
open(OUTPUT, "file"); # put gene information in this file;
@f_lines = ("gene1", "gene2", "gene3"...); # gene information;
print... (3 Replies)
Discussion started by: lyni2ULF
3 Replies
6. Shell Programming and Scripting
ok, so here is the issue, I have 2 arrays.
I need to be able to create a loop that will find ${ARRAY1 in the text doc, and replace it with ${ARRAY2 then write the results. I already have that working. The problem is, I need it to do that same result across however many items are in the 2... (2 Replies)
Discussion started by: gentlefury
2 Replies
7. Shell Programming and Scripting
Hi, I have an ksh array(ARR). the elements to the array are file names. i need to go to each file in the array and manipulate the records.
for name in ${files}; do ---this loop is for all the file names in the array
for i in $(wc -l < $name); do --this loop is for all the records in... (20 Replies)
Discussion started by: usrrenny
20 Replies
8. Shell Programming and Scripting
Hi,
I am having two folders where i need to compare the content of files and also to know if any new files been added and redirect the difference output in respective filename logs. For e.g.:
Directory D1:
f1
f2
f3
Directory D2:
f1
f2
f3
f4
i Need to compare the directories... (25 Replies)
Discussion started by: rohit_shinez
25 Replies
9. Shell Programming and Scripting
Hi All
I want to compare 2 files using awk and get output of content which is not matching
I have 2 files
a.txt
123
456
780
143
b.txt
A|B|C|167|D|E
C|K|D|123|D|E
A|B|D|789|G|F
C|D|G|143|A|B
Not matching line from b.txt
O/P
A|B|C|167|D|E
A|B|D|789|G|F (3 Replies)
Discussion started by: aaysa123
3 Replies
10. Shell Programming and Scripting
Hello,
I currently have very little experience with Shell scripting and trying to create a script for the purpose of collecting the size of a couple sizes on 4 different Hosts. The Idea is to collected the information from the files in which the script is kicked off on, store the values into... (17 Replies)
Discussion started by: Abstract3000
17 Replies
LEARN ABOUT SUSE
tnm::sunrpc
sunrpc(n) Tnm Tcl Extension sunrpc(n)
__________________________________________________________________________________________________________________________________________________
NAME
sunrpc - Call and probe selected Sun RPC services.
_________________________________________________________________
DESCRIPTION
The sunrpc command allows to call and probe selected Sun RPC (RFC 1831, RFC 1832) services.
SUNRPC COMMAND
sunrpc info host
The sunrpc info command returns a list of all registered Sun RPC services on host. Each list element contains the program number,
the program version, the protocol name, the port number and the name of the RPC service. The command fails, if host is unknown or if
the portmapper does not respond to our request.
sunrcp probe host program version protocol
The sunrcp probe command tests a Sun RPC service identified by program version protocol on host by calling procedure 0. This proce-
dure returns a list of two elements. The first element is the time needed to complete the RPC call and the second element is a
string which describes if the probe was successful.
sunrpc stat host
The sunrpc stat command makes an rstat RPC call to host and returns a list of name type value triples describing the status of the
machine. This command fails if host is not reachable or does not support the rstat service.
sunrpc mount host
The sunrpc mount command retrieves a list of all NFS file systems currently mounted from host. Each element of this list includes
the directory name and the host which exports the directory.
sunrpc exports host
The sunrpc exports command retrieves a list of all NFS file systems exported by host. Each element of this list contains the
exported directory name and the list of hosts that are allowed to mount the exported directory. An empty host list means that an
exported directory can be mounted by everyone.
sunrpc ether host open
sunrpc ether host
sunrpc ether host close
The sunrpc ether command allows to query an etherd daemon for ethernet statistics. You first have to register at the remote etherd
using the open command option. Afterwards, you can query the etherd which will return a list of name type value triples describing
the packets counted since the last query. You should unregister at the remote etherd using the close option once you are no longer
interested in ethernet statistics.
sunrpc pcnfs host info [array]
sunrpc pcnfs host list [array]
sunrpc pcnfs host queue printer [array]
sunrpc pcnfs host status printer array
The sunrpc pcnfs command allows to retrieve printer status information provided by the pcnfsd daemon. The first command retrieves
the daemon identification. The optional array variable will be filled with details about the supported procedures. The second com-
mand returns the list of all printer names known by the pcnsfd daemon on host. The optional array is indexed by printer name and
contains additional information about each printer. The queue subcommand retrieves the printer queue and returns the actual queue
length. Information about queued print jobs is written to the array variable if given. The array is indexed by the queue position
and contains information about the print job in key value pairs. The last pcnfs command retrieves printer specific status informa-
tion about the printer itself. The status is written into the array variable.
SEE ALSO
scotty(1), Tnm(n), Tcl(n)
AUTHORS
Juergen Schoenwaelder <schoenw@cs.utwente.nl>
Tnm sunrpc(n)