02-09-2006
Quote:
Originally Posted by wilsontan
Hi Vino,
thanks for the help it works, just curious what happens in if my INI file has the following format
criticalerror:69,20,1to9
warningmsg:10to19
what will i use to delimit ??
Simple.
Your delimiter would be
:
After that, you check for the presence of a
, and take the route of
range=${line##*,}. Else go down on this lane
range=${line##*:}
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to compare 2 float values using if
the foll code does not work
a=1.4
b=1.6
if test $a -gt $b
then
echo "$a is max"
else
echo "$b is max"
fi
does -gt work for floating point numbers, if not how do go about for my requirement? can i use bc ? pls help
thanks in advance... (2 Replies)
Discussion started by: kavitha
2 Replies
2. Shell Programming and Scripting
echo $line|cut -d " " -f`$plannedCount`-
and this is the output
$ ./read.sh
./read.sh: 12: not found
JADE TRADER 143W MYPEN 40 HC M X10 28 7 1 0
./read.sh: 9: not found
MYPEN 20 GP X X10 15 2 1 0
./read.sh: 9: not found
MYPEN 40 GP X X10 28 7 1 0
./read.sh: 9: not found
MYPEN 20... (6 Replies)
Discussion started by: finalight
6 Replies
3. Shell Programming and Scripting
Hello all
while writing a small script , i got stuck with this simple thing.Hope you guyz can help.
Iam trying to read password
echo"enter password"
read $pwd
now i have to check this
echo"enter password to proceed"
read $pwd
now i have to check both the values of the... (2 Replies)
Discussion started by: coolkid
2 Replies
4. Shell Programming and Scripting
i have two file and i am comparing both..
in cmp1 ,the content is :
the nu of file is : <some integer value>
in cmp2 ,the content is :
the nu of file is :
so want a script which will take value (2) when cmp1 is compared with cmp2..
i mean cmp cmp1 cmp2 the the output will be
he nu of... (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies
5. Shell Programming and Scripting
Hi to all,
I have the following text within inputfile
data1,value1,value2
data1,value3,value2
data1,value5,value6
data2,value1,value2
data2,value3,value4
data3,value1,value2
data3,value3,value4
data4,value1,value2
data4,value3,value4
data4,value5,value6
I would like to... (4 Replies)
Discussion started by: cgkmal
4 Replies
6. Shell Programming and Scripting
Hi
Am trying to compare the values of two files..
One is a big file that has many values and the other is a small file..
The big file has all values present in small file..
# cat SmallFile
4456602 22347881
7471282 15859891
8257690 21954701
7078068 18219229
2883826 6094959
100000
... (3 Replies)
Discussion started by: Priya Amaresh
3 Replies
7. Shell Programming and Scripting
I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables.
I need to read this file which is an input to my script
Config.txt
file name, first path, second... (7 Replies)
Discussion started by: ketanraut
7 Replies
8. Shell Programming and Scripting
Hi All,
I have a string with , delimiter
america,finland,netherlands
Now i want these values to be stored in file as below with newline character at end of each value
america
finland
netherlands
Regards
Prasad (3 Replies)
Discussion started by: krishna_gnv
3 Replies
9. Shell Programming and Scripting
My file looks like this....
User:SYSTEM,O/S User:oracle,Process:3408086,Machine:hostname ,Program:sqlplus@hostname (TNS V1-V,Logon Time:25-JUL-20
14 13:36
I want to get the date and time which is displayed after the 'Logon time'. (5 Replies)
Discussion started by: Nagesh_1985
5 Replies
10. Shell Programming and Scripting
I was trying to extract value of g1 and p1 only inside the tags where t1 is "Reading C (bytes)" and comparing them to make sure p1 is always less than g1. Here is the Json file I'm using -
File:-
{
"g1" : 1482568,
"n1" : "v_4",
"p1" : 0,
"s1" : "RC",
"t1" : "LM",
}
{
"g1" :... (3 Replies)
Discussion started by: Mannu2525
3 Replies
LEARN ABOUT ULTRIX
seesat5
seesat5(1) General Commands Manual seesat5(1)
NAME
seesat5 - provides satellite visibility information.
SYNOPSIS
seesat5 [ report ] [ go <Label> ] | [ <command> ... ]
DESCRIPTION
This program uses the sgp4 algorithm provided by NORAD to produce position information on a satellite. Seesat5 can produce tracking infor-
mation for one satellite over a period of several days, or for a collection of satellites over that period. By providing filter conditions
seesat5 prints out only those satellites you might have a chance to see rather than all the satellites that pass above the horizon.
Seesat5 is typically run by placing control commands into an init file called SEESAT5.INI. See seesat5 (7) for the description of these
commands. If there is no init file Seesat5 will present the operator with a '>' prompt where commands can be entered. From the prompt
seesat5 will begin analysis when sufficient parameters have been entered to begin the run.
Seesat5 uses selection conditions to filter the data so that only high and bright satellites are printed. Note that the selection condi-
tions are used to select whether or not the current passes data will be printed. If it is printed, then the complete pass data is printed.
ie. all data from when the satellite comes over the horizon until it goes below.
For lines that satisfied ALL the selection conditions, a "+" sign is printed as the first character.
Options
report This option will disable printing of report records in the output of the run. These include all command lines found in SEESAT5.INI
or entered from the command line or the prompt.
go Followed by a label, this option causes branching within the SEESAT5.INI to begin execution at the line following label. Branching
occurs when the cmdline command is executed in the SEESAT5.INI file.
command
Most of the commands that can be found in SEESAT5.INI can be entered on the command line. If you desire the SEESAT5.INI file to exe-
cute after the command line be sure to make the last command RET.
FILES
SEESAT5.INI
The control file for seesat5
*.tle Two line element files used by seesat5.
SEE ALSO
seesat5(7), SEESAT5.INI(5), tle(5), cr(1)
BUGS
Seesat5 is not always able to check data integrity. Since computation and output is driven by the data in the two line element, subtle
errors in a tle can cause floating point exceptions. In addition there are several commands that do not work well together, like SHOWTLE
and RUNTIME. Please report any problems with seesat5 to Dale Scheetz <dwarf@polaris.net>.
Debian Linux 28 March 96 seesat5(1)