Not sure what you were trying to achieve with both the check_it function and the case statement. You can do it all using a case statement as shown in the following example
HI all,
I would like to know how the user can be restricted for entering only the number and not characters in sheel scripts..
Suppose code is like this
echo 'Enter the number'
read Value
Now user may enter 'a' as value...
But i want to disallow him for entering characters other than... (3 Replies)
HI all,
I want to script where all the server names will be in a text file like
server1
server2
server3 . and the script should take servernames from a text file and perform copy of files if the files are not present on those servers.after which it should take next servername till the end of... (0 Replies)
I have a file which extracts data from an HTML file
For Eg HTML file contains:
New York;ABC;145;Yes;YES;No
New York;BCD;113;Yes;YES;No
New York;NAS;63;Yes;YES;No
------------------------
London-48;CBT;16;Yes;YES;No
London-48;CME;17;Yes;YES;No
London-48;EUR;52;Yes;YES;No... (7 Replies)
Hello there, find below for my code first:
$pdp_asaba=`cat /tmp/temp_total | grep asaba | sed 's/*//g'`
if ]]
then pdp_asaba=0
fi
$pdp_abuja=`cat /tmp/temp_total | grep abuja | sed 's/*//g'`
if ]]
then pdp_abuja=0
fi
$pdp_ojota=`cat /tmp/temp_total | grep ojota | sed 's/*//g'`
if ... (3 Replies)
I need to search a string for some specific text which is no big deal using grep. My problem is when the search fails to find the text. I need to add text like "na" when my search does not match.
I have tried this command but it does not work when I put the command in a loop in a bash script:
... (12 Replies)
I am trying to use awk skip each line with a ## or # and check each line after for STB= and if that value in greater than or = to 0.8, then at the end of line the text "STRAND BIAS" is written in else "GOOD".
So in the file of 4 entries attached.
awk tried:
awk NR > "##"' "#" -F"STB="... (6 Replies)
Hi dears
i use bash shell
i have INPUT.txt
like this
number of columns different in one
some row have 12 , some 11 columns
see last column
INPUT.txt
CodeGender Age Grade Dialect Session Sentence Start End Length Phonemic Phonetic
63 M 27 BS/BA TEHRANI 3 4 298320 310050... (2 Replies)
Discussion started by: alii
2 Replies
LEARN ABOUT DEBIAN
nec2
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)