12-20-2005
Set an array
set -A <array_name> item1 item2 item3 item4 ....
or you can read from a file....
filename = /.../.../.../... #input file
set -A <array_name> [ < $filename]
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am using the following command to initialize and array
# arr=ffffff00
# echo $arr
ffffff00
my requirement is i want to fetch the one by one character from array.
I don't know how to fetch one by one charcter from array.
Please i need an help.
Thank you very much
Ravi R N (2 Replies)
Discussion started by: ravi_rn
2 Replies
2. Shell Programming and Scripting
Hi ,
suppose , i have a array variable with size 40 and i have assign a 10 character values. I want to print the array like ,the 10 caharacter value with rest 30 character as blank, if i assigned any blank values also .it will print 40 blank space.
Please help me regaring this.It is very... (5 Replies)
Discussion started by: julirani
5 Replies
3. Shell Programming and Scripting
I am trying to implementing two dimensinal array in ksh script.Would you pls help me out.
I have a large size of file, File contains looks like
ID SID VLAUE1 VALUE2 TOTALVALUE
1 a1 01 02 03
1 b1 02 05 07 ... (2 Replies)
Discussion started by: pritish.sas
2 Replies
4. Shell Programming and Scripting
Hi all,
Please help me out how to read and display two dimensional array elements in unix.
EX: 1 2
3 4 (1 Reply)
Discussion started by: eswarcs
1 Replies
5. Shell Programming and Scripting
Dear masters,
Need your help for my below query.
Actually my script is as shown:
#!/usr/bin/ksh
pp='"aa bb" cc dd'
set -A mon -- $pp
echo ${mon}
echo ${mon}
echo ${mon}
But when I execute this script , I get the output as :
"aa
bb"
cc
I want the output as below and it should... (6 Replies)
Discussion started by: patric2326
6 Replies
6. Shell Programming and Scripting
how can i assign each line to a variable ?
i tried below but its not working.
code:
arr=cat tes.txt|cut -d "=" -f2
then i tried to see output of the first line by below command but its giving first line.
echo $arr
Please help me. How i can assing each line to a array?
Thank,... (1 Reply)
Discussion started by: prince1987
1 Replies
7. UNIX and Linux Applications
Hi,
I want the Perl script with versions 5.8.2 and 5.8.5 starting with
#!/usr/bin/perl
The Perl program should read the excel file or text file line by line and taking into an array and search in the UNIX directories for reference file of .jsp or .js or .xsl with path .The Object names... (2 Replies)
Discussion started by: pasam
2 Replies
8. Shell Programming and Scripting
Hi all,
I have declared an array in unix as below.
#!/bin/ksh
arr=()
for i in {0..4}
do
arr=$i;
done.
i want to insert these array variables into the oracle table.can you guys please help me in doing this. my code is as below.
value=`sqlplus -s fos/fos << EOF
begin
for j in... (10 Replies)
Discussion started by: Mukta
10 Replies
9. Shell Programming and Scripting
Hi,
I have table in sql ..from this table im storing the first coloumn values in shell array variable ...
after this passing this variable as an arugument in SQL procedure.
But the proc. is running fine only for 1024 values in array ...
How to store more than 1024 values in the array... (5 Replies)
Discussion started by: ankitknit
5 Replies
10. Shell Programming and Scripting
Hey everyone,
I am trying to extract column values from a column in a tab-delimited text file and overlay them in a 2nd tab-delimited text file using a V-lookup type script in Unix bash.
These are the 1st few rows of the 1st input file IN1:
rsid chromosome position allele1 ... (10 Replies)
Discussion started by: Geneanalyst
10 Replies
LEARN ABOUT OSF1
uudemon.cleanu
uudemon(4) Kernel Interfaces Manual uudemon(4)
NAME
uudemon.admin, uudemon.cleanu, uudemon.hour, uudemon.poll - Administrative shell scripts for polling remote systems, cleaning up spool
directories, reporting status to the system administrator, and routine invocations of the uuxqt and uusched daemons
SYNOPSIS
These shell scripts reside in the following directory:
/usr/lib/uucp
DESCRIPTION
All the scripts can be run from the command line or can be run automatically by the cron daemon. To automatically run the scripts, remove
the comment character (#) from the beginning of the relevant line in the /var/spool/cron/crontabs/uucp file.
This script reports status to the system administrator. It issues the uustat command to find out the status of uucp jobs. It mails the
results to the uucp login ID. The script may be modified to send mail to any login ID such as the uucp administrative login ID (uucpa) or
root. This script cleans up the /var/spool/uucp and /var/spool/uucppublic directories by running the uucleanup command. The uucleanup com-
mand is run with the following parameters: -C7, -D7, X2, -o2, -W1. This script runs the uusched and uuxqt daemons in the background. This
script polls the systems listed in the /usr/lib/uucp/Poll file. The uudemon.poll script should be scheduled before the uudemon.hour
script. This allows uudemon.poll to create any command files before cron runs the uudemon.hour script.
FILES
Contains the uudemon.admin, uudemon.cleanu, uudemon.hour and uudemon.poll files. Contains the uucp file.
RELATED INFORMATION
Commands: cron(8), uucleanup(8), uusched(8), uuxqt(1)
Files: /usr/lib/uucp delim off
uudemon(4)