If its a file how does the system know it has to read the content? (my system cant ...(ksh) )
e.g. (AIX 6.1...)
Q2 : there is no difference (except indentation...) between the 2 portions of code you submitted: A loop that starts when the previous finishes is a sequence... so one after the other...
Last edited by vbe; 12-16-2011 at 09:30 AM..
Reason: add code sample
i don't get what's wrong here. i'm writing a shell script that takes 1 argument (a number) from the command-line, but it's throwing an error:
Syntax error: Bad for loop variable
doesn't make much sense
for (( i = 1; i = ${1}; i++ )) # error points to this line everytime
do
echo... (9 Replies)
Hi,
I have the following script (compile_mercury) and I get this error: I have no idea why...and I have written this script completely in linux (bash) and not in windows.
****************
./compile_mercury: line 136: syntax error near unexpected token `done'
./compile_mercury: line 136:... (1 Reply)
Hi guys,
I'm trying to loop through a number of files that is set by whatever is in a field.
eg.
The idea is to split FILELIST down into fields, it could contain 1 - 999 fields and it's bar delimited.
I thought simple, count the number of fields in the field and then loop... (1 Reply)
hi,
I have to use for loop in my script. The below code is providing an output,
1,2,3,4,5..n. But i need to display the values one by one eg: it has to display the first value then exit from the loop and display the second value then exit till n(last value).
for i in 1,2,3,4,5..n
do ... (2 Replies)
I am trying to run a menu option though IF loops. I keep getting errors not allowed the menu to be processed correctly. Currently it will accept the first 2 statements but then crash on the 3rd. The 2nd and 3rd have the same syntax, so I do not understand why it breaks.
#!/bin/bash
while... (4 Replies)
can some one please tell me what is the problem with my syntax:confused:
I have 100 files in one folder
1. want to read each of the line by line
2. calculate their number of the words between the first word and the last word of each line
3. create file for each file with number of words... (8 Replies)
I am using simple for loop, but getting syntax error when I run the code
code
#!/bin/ksh
pls enter number
read n
for(i=1; i<=n; i++)
do
echo $i
done
syntax error
+ pls enter number
+ read n (5 Replies)
I have a shell script which has this while loop line
"while read tblName xx; do..."
I understand how while loop works but don't know what does this xx stands for? (1 Reply)
I like to “optimize” / make more like a real program my bash script by replacing repetitious code which utilizes positional parameters.
I am having two issues I cannot solve and would appreciate some assistance with resolving them.
a) how to modify the whiptail checklist... (3 Replies)
Discussion started by: annacreek
3 Replies
LEARN ABOUT DEBIAN
nec2small
NEC2(1) General Commands Manual NEC2(1)NAME
nec2, nec2small - Numerical Electromagnetics Code (Antenna Modelling Program)
SYNOPSIS
nec2 [INPUT] [OUTPUT]
nec2small [INPUT] [OUTPUT]
DESCRIPTION
nec2, is a versatile numerical Boundary Element Method (commonly called Method of Moments) antenna modelling code for the analysis of
antennas and other metal structures. It solves the integral equations for the currents induced on the structure by sources or incident
fields. The structure may either be excited by voltage sources on the structure, or by an incident plane wave of either elliptic or linear
polarisation. The structure and excitation are described in the INPUT file and the output is written to OUTPUT.
OPTIONS
Due to the age of the program, it expects input in the form of punched cards fed into a hopper. It currently does not accept any options.
If OUTPUT is omitted, output is written to stdout and if INPUT and OUTPUT are omitted then the input is taken from stdin and the output
written to stdout.
The maximum size of problem which the code can handle must be hard coded at compile time and no dynamic memory allocation is performed.
Two versions are therefore provided suitable for different sizes of problem, nec2 is compiled for a maximum of 10000 wire segments and 5000
surface patches, while nec2small is compiled for a maximum of 600 wire segments and 200 surface patches.
SEE ALSO somnec(1)
The NEC-2 code is fully documented in the report Numerical Electromagnetics Code (NEC) -- Method of Moments" by Burke and Poggio, which is
available as a printed publication in three parts covering the theory of operation, the program code and the users' manual. An updated
form of the users' manual part of this report can be found in /usr/share/doc/nec/NECdoc
BUGS
nec2 has been superseded by nec4, but this revised code has not been made available to the public, so it is possible that some bugs remain
in this version.
Also note that many variant source codes exist based on the original FORTRAN-IV listing in the report. This one is believed to be cor-
rectly working, but may still contain extra errors.
AUTHOR
This manual page was written by <alanb@chiark.greenend.org.uk>. The program was developed by G. J. Burke and A. J. Poggio of the Laurence
Livermore Laboratory.
NEC2(1)