I am using korn shell unix.
I have a script that I am working with to do a check for me using a text file.
#finds "Time" from the text file and cuts the second field from the #line
A= grep Time test.txt | cut -f2
# the "#Missing" is being pulled from the second field of the text... (1 Reply)
Hello,
I just want to know how If it's possiple to define 2 variable using foreach command ???
I have directory inside that directory around 1000 file, I want to rename all of this files to something I have it in a list. Example :-
------This is what in my directory----------
d1
d2... (14 Replies)
I have a variable with a value of "05". When I add one to that variable, using the command: CURR_YY=`expr $CURR_YY + 1`, I get the value of "6", losing the leading zero (which is needed for passing to another script). How do I keep the leading zero?
Thank you! (10 Replies)
Hi all,
I have a variable say var1 (output from somewhere, which I can't change)which store something like this:
echo $var1
name=fred
age=25
address="123 abc"
password=pass1234
how can I make the variable $name, $age, $address and $password contain the info?
I mean do this in a... (1 Reply)
Hello,
I would like to define a variable based on another variable:
a=5
b$a=100
This does not work. What is the right way to do it?
Thanks
---------- Post updated at 07:37 PM ---------- Previous update was at 07:33 PM ----------
Found my answer with the search function (did not... (0 Replies)
Hi, Unix Gurus,
In our existing file, there is a script like
#!/bin/sh
step=${1:-0}
cur_step=10
if
...
My question is what's "${1:-0}" mean? I know it defines a variable but I don't know what's (1:-0) mean?
:wall:
Thanks in advance. (2 Replies)
Hi,
Is it possible in perl to have a hash defined with variables as theirs key values, like:
%account = ('username' => 'boy', 'password' => $password);
Thanks (1 Reply)
HI
I have file A.txt
_1A
_2A
_3A
_4A
I want define all as different variable.
$1A=_1A
$2B=_2A
$3C=_3A
$4D=_4A
Now i can use any variable in my script. (3 Replies)
Dear Shell script Experts,
I am working on shell script which is defined here, qsub_seq.csh . The purpose of this script is to read few input files (with defined starting index and last index) and make processing faster over server.
For some task, I had 1064 of input files, so I wrote another... (8 Replies)
Discussion started by: emily
8 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)