10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I tried to execute a while within another while, but not working. Any suggestions? Thanks in advance
#!/bin/ksh
typeset -i i=1
typeset -i j=1
while ]
do
while ]
do
print i = $i j= $j
(( j=j+1 ))
done
(( i=i+1))
done (3 Replies)
Discussion started by: Soham
3 Replies
2. Shell Programming and Scripting
Dear All,
I have script.
Dest=""
IFS='
'
for translation in $(echo $MY_MAP)
do
t1=$(echo $translation | cut -d"=" -f1)
t2=$(echo $translation | cut -d"=" -f2| cut -d"," -f1)
if
then
Dest=$UNX/$u_product_path/$u_study_path/$UNXTR/$t2
break;
... (4 Replies)
Discussion started by: yadavricky
4 Replies
3. Shell Programming and Scripting
$ cat tmp.sh
#!/tools/bin/bash
echo $BASH_VERSION
$ cat tmp.pl
#!/usr/local/bin/perl
use strict;
use warnings;
use DBI;
use CGI;
system("tmp.sh");$ tmp.sh
3.2.48(1)-release
The result is as expected.
$ tmp.pl
3.2.25(1)-releaseThe result is not as expected.
The shell directive in... (5 Replies)
Discussion started by: carloszhang
5 Replies
4. Shell Programming and Scripting
Dear Friends,
I am trying to get a script in c-shell working but no way! I don't know why but on my mac was working and now on linux is not!
Basically the script should accept a root_file_name and work in batch on files. This is the script:
#!/bin/csh -fn
setenv IMAGIC_BATCH 1
... (3 Replies)
Discussion started by: Mandrake83
3 Replies
5. UNIX for Dummies Questions & Answers
i wrote a shell program in Home Directory.
and i changed to other directory.
i want to try to execute shell script in Other Dir.
it is not executed.
how can i make this script to execute in other directory also??
Thanks,
Arun (11 Replies)
Discussion started by: arun508.gatike
11 Replies
6. Shell Programming and Scripting
hi,
i need to check the existence of all files starting with abc in a directory. The code works fine with a particular file name, but the file existence is not detected when i use wildcard character (abc*)
kindly suggest what could be the issue :confused:
src_filename1=$AI_LANDING/abc*... (11 Replies)
Discussion started by: spirit10
11 Replies
7. Shell Programming and Scripting
Hello Unix Gurus,
I have:
A list of parameters that repeat (in .txt file)
Example: params.txt
Series: XYZ
Manufacturer: ...
Software Version: ...
Year made: ...
Series Series: XYZ
Manufacturer: ...
Software Version: ...
Year made: ...
Series Series: ABC
Manufacturer: ...
... (7 Replies)
Discussion started by: lapiduslost
7 Replies
8. Shell Programming and Scripting
Hello all,
Any idea how to check whether a variable holding null value or not. if -z option works fine in bash, where as it is not working in sh.
bash-3.00$ sh
$ TEST=
$ if ; then
> echo "Null"
> else
> echo "Not null"
> fi
sh: test: 0403-004 Specify a parameter with this command.... (2 Replies)
Discussion started by: rijeshpp
2 Replies
9. Shell Programming and Scripting
hi freinds,
i just learning shell programming. i usually work in bash shell, but when i need tcshell, i normally i/p chshell command and go there. but although i have installed all the neccessay patches for this shell my machine can not work in tshell. but it shows the shell to be present..... (0 Replies)
Discussion started by: hytechpro
0 Replies
10. Shell Programming and Scripting
This code has worked for years and still does in my production environment. But it's failing in my development environment now. The cd works but the creation of node1, jnum, and node2 fails. Oddly the output shows a line from from the awk script at the end of the code during the setting of each... (6 Replies)
Discussion started by: gillbates
6 Replies