Hi,
What is the maximum number of arguments that could be passed to zsh ?
To find out that I tried a simple script.
And the maximum number of arguments that could be passed turned out to be 23394
#! /bin/zsh
arg=1
i=1
subIndex=23000
while
do
arg=$arg" "$i
i=$(($i + 1))... (9 Replies)
Can someone please help me with this SHELL script?
I need to create a script that gets a positive number n as an argument. The script must calculate the factorial of its argument. In other words, it must calculate n!=1x2x3x...xn. Note that 0!=1.
Here is a start but I have no clue how to... (3 Replies)
I want to compress backup files to tape using compress on our AIX 4.2
- Our TAR does not have compression.
- I do not want to use local storage to compress as most of the filesystems are pretty full.
- the only compressing tool we have is 'compress'
- tapes are 5Gb 8mm
I am trying this... (10 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)
I wrote the day calculator also in bash. I would like to now, that is it good so?
#!/bin/bash
datum1=`date -d "1991/1/1" "+%s"`
datum2=`date "+%s"`
diff=$(($datum2-$datum1))
days=$(($diff/(60*60*24)))
echo $days
Thanks in advance for your help! (3 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 OSF1
pextrem
PEXTREM(1) General Commands Manual PEXTREM(1)NAME
pextrem - find minimum and maximum values in RADIANCE picture
SYNOPSIS
pextrem [ -o ] [ picture ]
DESCRIPTION
Pextrem locates the minimum and maximum values for the input picture, and prints their pixel locations and color values. The first line
printed contains the x and y pixel location (x measured from the left margin, y measured from the bottom), followed by the red, green and
blue values. The second line printed contains the same information for the maximum value.
The -o option prints the original (radiance) values, undoing any exposure or color correction done on the picture.
If no input picture is given, the standard input is read.
AUTHOR
Greg Ward
BUGS
The luminance value is used for comparison of pixels, although in certain anomolous cases (ie. highly saturated colors) it is possible that
pextrem will not pick the absolute minimum or maximum luminance value. This is because a fast integer-space comparison is used. A more
reliable floating-point comparison would be slower by an order of magnitude.
SEE ALSO falsecolor(1), getinfo(1), pcomb(1), pcompos(1), pextrem(1), pfilt(1), pflip(1), protate(1), psign(1), rpict(1), ximage(1)RADIANCE 11/15/93 PEXTREM(1)