10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear Friends,
Please help me on this
my script name is send.csh
In this i have written the statement like this
set args = ( city state country price )
I want to pass this array to another c shell called receiver.csh. and i want to use it in this c shell
or
how to pass to... (2 Replies)
Discussion started by: SA_Palani
2 Replies
2. 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
3. Shell Programming and Scripting
Hi,
check=("/usr/local/bin/chk_nag | awk -F":" '{print $1}'" "/usr/local/bin/chk_kas | awk -F":" '{print $1}'" "/usr/local/bin/chk_was | awk -F":" '{print $1}'"
)
for i in "${check}";
do
echo $i;
done
when I run this. It says Syntax error: "(" unexpected
Please advise. (5 Replies)
Discussion started by: ashokvpp
5 Replies
4. Shell Programming and Scripting
Hi all,
I'm newbie in shell. I'm trying to create files with user name select from database on title with .csh file. So my solution is select name from database into an array, and then foreach name I create a file with that name on title. Like this:
set Name = `sqlplus -s ${MYSQL}` <<EOF
... (3 Replies)
Discussion started by: leejung89
3 Replies
5. Shell Programming and Scripting
Hi, everyone.
I wrote a code like this
for f in HB021*
do
program
done
for f in HB034*
do
program
done
for f in HB056*
do
program
done
.
. (5 Replies)
Discussion started by: xshang
5 Replies
6. Shell Programming and Scripting
Hi all,
I want to create an array variable in shell, for example:
#!/bin/sh
name="foo"
name="bar"
name="baz"
But above code didn't work, I also tried with:
name=(foo bar baz)
and
set -A name foo bar baz
but none of these worked.
Another question is how to know the shell... (6 Replies)
Discussion started by: Roy987
6 Replies
7. Shell Programming and Scripting
Hi,
i have a file which reads,
arun/manager/200000
pradeep/engineer/10000
karthik/teamlead/30000
.....
i want an output to show,
name role salary
=======================
arun manager 200000
pradeep engineer 10000
and so on..
i want to do... (9 Replies)
Discussion started by: pradebban
9 Replies
8. 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
9. Shell Programming and Scripting
I have a korn shell script that reads a file with just one column in the file. If the file has more than 5 entries it is split using split -5. This means that is we have 15 entries I will end up with 3 files with 5 entries/lines in each and if I have 23 entries I will end up with 5 files with the... (2 Replies)
Discussion started by: kieranfoley
2 Replies
10. Shell Programming and Scripting
I read it is possible to provide values for an array with the -A option to the read statement; however, I have not been able to get this to work. When I execute a script with the -A option to the read statement, the shell complains that it is an illegal option. If this works, can someone provide... (5 Replies)
Discussion started by: cstovall
5 Replies