My original post did not show up properly. I am trying again.
I have a simple tsch script that does some basic arithmetic. The calculated value was not producing the result I was expecting. I wrote a sample script to illustrate the things that I tried.
script output
Total Count:61 Finished:43 Failed:4 61-43-4
22
Total Count:61 Finished:43 Failed:4 61-43-4
14
Total Count:61 Finished:43 Failed:4 61-43-4
22
Total Count:61 Finished:43 Failed:4 61-43-4
14
Last edited by sgualandri; 01-03-2014 at 04:52 PM..
Reason: original text did not show up
Hey everyone,
A coworker of mine has written a csh script that starts with #!/usr/bin/csh -f. It's my understanding that the -f should skip the .cshrc and .login files, but here's the problem: In the script "line" is used, and I happen to have a "line" in my ~/bin. When the script is ran my... (4 Replies)
I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them)
Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
Hi all
Just wondering if someone can help me with this. I'm trying to write a script that processes the output of another file and prints only the lines I want from it.
This is only the second script I have written so please bare with me here. I have referred to the literature and some of the... (3 Replies)
Below is my script:
#!/bin/sh
#echo "Please type oracle-lower case please:"
#read X
#if ]
#then
# echo "Sorry that is not oracle, try again"
# exit 1
#else
# echo Thank you
#fi
find / -name oracle 2>/dev/null |
while read line
do
bdf 2>/dev/null |... (6 Replies)
Hello,
Could someone explain how this one is possible:
# @ x = 10 - 11 + 3
# echo $x
-4
I know that writing script using csh is bad idea, but I need to write few lines.
thanks
Vilius (2 Replies)
Hello everyone,
I need some assistance with what I thought would have been a very simple script.
Purpose of Script:
Script will parse through a source file and modify (search/replace) certain patterns and output to stdout or a file. Script will utilize a "control file" which will contain... (12 Replies)
I have the following code in a csh script
I want to pass the value of the variable sigmasq to the awk script so that I can divide $0 by the value of sigmasq
grep "Rms Value" $f.log \
| awk '{ sub(/*:*\.*/,x); \
print... (2 Replies)
Hi,
Can anyone explain why do I see same request twice in tcpdump package when I use "tcpdump -i any"?
So I'm tracing packets on eth1.800 interface, but using "tcpdump -i any" to capture them. What I see is that the requests/responses from my side seem to appear as duplicate in the pcap file,... (1 Reply)
Hey guys, awk is putting out too many results, two of each specifically. See below.
Code:
read CPU_VENDOR_ID <<< $(cat /proc/cpuinfo | grep "vendor_id" | awk -F: '{print $2}')
echo $CPU_VENDOR_ID
echo
Output:
AuthenticAMD AuthenticAMD
I only want it to print out "AuthenticAMD" once.
... (7 Replies)
Hi,
I have a text file with some thousands of rows of the following kind (this will be referred to as the inputFileWithColorsAndNumbers.txt):
Blue 6
Red 4
Blue 3
Yellow 4
Red 7
Colors in the left column and a number in the right one for each line. I want to run an awk... (5 Replies)
Discussion started by: Zooma
5 Replies
LEARN ABOUT BSD
trapov
TRAPOV(3F)TRAPOV(3F)NAME
trapov - trap and repair floating point overflow
SYNOPSIS
subroutine trapov (numesg, rtnval)
double precision rtnval
DESCRIPTION
NOTE: This routine applies only to the older VAX 11/780's. VAX computers made or upgraded since spring 1983 handle errors differently.
See trpfpe(3F) for the newer error handler. This routine has always been ineffective on the VAX 11/750. It is a null routine on the
PDP11.
This call sets up signal handlers to trap arithmetic exceptions and the use of illegal operands. Trapping arithmetic exceptions allows the
user's program to proceed from instances of floating point overflow or divide by zero. The result of such operations will be an illegal
floating point value. The subsequent use of the illegal operand will be trapped and the operand replaced by the specified value.
The first numesg occurrences of a floating point arithmetic error will cause a message to be written to the standard error file. If the
resulting value is used, the value given for rtnval will replace the illegal operand generated by the arithmetic error. Rtnval must be a
double precision value. For example, ``0d0'' or ``dflmax()''.
FILES
/usr/lib/libF77.a
SEE ALSO trpfpe(3F), signal(3F), range(3F)BUGS
Other arithmetic exceptions can be trapped but not repaired.
There is no way to distinguish between an integer value of 32768 and the illegal floating point form. Therefore such an integer value may
get replaced while repairing the use of an illegal operand.
4.2 Berkeley Distribution May 15, 1985 TRAPOV(3F)