12-06-2005
Thanks for your immediate response.
But its still giving the same error. If I comment the for loop and executing the for a single variable then its fine, but for the "for loop" its giving the error, am checking for the alternatives if any.
Regards,
Raju
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
./disk_space_util.sh
./disk_space_util.sh: Syntax error at line 24 : `then' is not expected.
=================================
cat disk_space_util.sh
#!/bin/sh
#
# Parameter Settings ORA_LOG, ORA_SCRIPT, DBA_EMAIL_LIST -- (Set in .profile)
bdf | sed "s/%/ /g" | sed "/Filesystem/d" |... (13 Replies)
Discussion started by: uuser
13 Replies
2. Shell Programming and Scripting
I get this error when I try to run my script
(BTW, this is a simple script I am supposed to write for my class)
$ menuscript
menuscript: syntax error at line 89 : `"' unmatched
$
Here is the code (Any help is greatly appreciated)
(Line numbers included)
1 #!/bin/ksh
2 ... (2 Replies)
Discussion started by: KindHead
2 Replies
3. UNIX for Dummies Questions & Answers
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies
4. Shell Programming and Scripting
Hi
I not sure what is wrong with my script... when I try to run it I get the follow error: "remove: syntax error at line 77: `end of file' unexpected" Thanks in advance for any help.
ans=y
while
do
while :
do
echo "Please enter a name that you... (3 Replies)
Discussion started by: simpsonjr
3 Replies
5. Shell Programming and Scripting
Hey guys keep having problems with the below script syntax error near unpexpected token '0' exit 0 I have two directorys backups and Usr in the usr i have sub dir's wp,ss,pic which i would like to back up (copy those directorys to the backups directory) with user acknowledgement from command line.... (2 Replies)
Discussion started by: Spartukus
2 Replies
6. Shell Programming and Scripting
hello everyone
i am beginner on shell scripting .and i am working on my project work on ad hoc network
i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem "
syntax error near unexpected token `('... (1 Reply)
Discussion started by: marcoss90
1 Replies
7. Shell Programming and Scripting
Hi All,
I am new to Unix, I have written the following script in ksh and get a syntax error :wall:. I need some help to figure out the error and reason. The script below uses some variables from an environment file, also it executes a sql file. The sql file is correct and has no problems. I... (1 Reply)
Discussion started by: disshort23
1 Replies
8. UNIX for Dummies Questions & Answers
Hi guys i'd like to show you this code of my script, where i couldn't find this error
" #! /bin/bash
#copiabin.sh: copia todos los archivos ejecutables a bin
if
then
mkdir $HOME/bin
fi
# copia de archivos y contador N
N=0
for ARCH in *
do
if # Si el archivo es... (9 Replies)
Discussion started by: Newer
9 Replies
9. Shell Programming and Scripting
So, I'm writing my first shell script to try to speed up the process of creating lyric files for mocp and I don't know what the error is, but considering how short the code is, I'm betting it's something super-obvious.
line 7: syntax error near unexpected token `echo'
line 7: ` echo... (4 Replies)
Discussion started by: D351
4 Replies
10. UNIX for Beginners Questions & Answers
Evening All (or morning for some),
Could anyone have a look at the below and advise where i've going wrong with the syntax as i keep getting the below error while trying to run.
Any help would be really apprecaited.
./testout: line 13: syntax error near unexpected token `else'
... (4 Replies)
Discussion started by: mutley2202
4 Replies
LEARN ABOUT DEBIAN
extend
extend(1) General Commands Manual extend(1)
NAME
extend -- produce an extended elevation from a .3d file
SYNOPSIS
extend [--specfile configuration .espec file] input .3d file [output .3d file]
Description
Note:
The extend program can also work on Compass .plt (as can aven and any other Survex program which reads .3d files).
If no specfile is given, extend starts with the highest station marked as an entrance which has at least one underground survey leg
attached to it. If there are no such stations, the highest deadend station in the survey (or the highest station if there are no deadends)
is used. Extend puts the first station on the left, then folds each leg out individually to the right, breaking loops arbitrarily (usually
at junctions).
If the output filename is not specified, extend bases the output filename on the input filename, but ending "_extend.3d". For example,
extend deep_pit.3d produces an extended elevation called deep_pit_extend.3d.
This approach suffices for simple caves or sections of cave, but for more complicated situations human intervention is required. More com-
plex sections of cave can be handled with a specfile giving directions to switch the direction of extension between left and right, to
explicitly specify the start station, or to break the extension at particular stations or legs.
The specfile is in a format similar to cavern's data format:
;This is a comment
; start the elevation at station entrance.a
*start entrance.a ;this is a comment after a command
; start extending leftwards from station half-way-down.5
*eleft half-way-down.5
; change direction of extension at further-down.8
*eswap further-down.8
; extend right from further-down.junction, but only for
; the leg joining it to very-deep.1, other legs continuing
; as before
*eright further-down.junction very-deep.1
; break the survey at station side-loop.4
*break side-loop.4
; break survey at station side-loop.junction but only
; for leg going to complex-loop.2
*break side-loop.junction complex-loop.2
This approach requires some trial and error, but gives useful results for many caves. The most complex systems would benefit from an
interactive interface to select and view the breaks and switches of direction.
See Also
3dtopos(1), aven(1), cad3d(1), cavern(1), diffpos(1), sorterr(1), svxedit(1)
extend(1)