05-14-2008
Right but how do I handle this in a scenario where I don't know the number of view occurance ?
Thanks again,
Daya
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello,
I am trying to parse an error returned by a command inside the if statement but it is just displays the full error instead and then stops.
if ; then
echo "no such package"
else
echo "similar version found will use pkgrm"
fi
the above code just displays
please let me know... (2 Replies)
Discussion started by: rakeshou
2 Replies
2. Shell Programming and Scripting
:b:hi,
I have a script as given below:
pr_det="1"
if
then
awk ' BEGIN {printf("%23s","session")}' >> report.txt
awk ' BEGIN {printf "\n"} ' >> report.txt
else
awk ' BEGIN {printf("%55s","file_dsc")} ' >> report.txt
awk ' BEGIN {printf("%101s","no_recs")} '... (1 Reply)
Discussion started by: jisha
1 Replies
3. Shell Programming and Scripting
year=`date '+%Y'`
month=`date '+%m'`
day=`date '+%d'`
day=`expr $day - 1`
case $month in
1 | 3 | 5 | 7 | 8 | 10 | 12);;
if($day =7 ); then
$day=6
fi
4 | 6 | 9 | 11);;
if ; then
$day=31
fi
2);;
if ; then
if ; then (2 Replies)
Discussion started by: dannyd_y
2 Replies
4. Shell Programming and Scripting
HI i am getting error while executing the given statement
for filename in `cat a/file.lst`
do
if then
echo "Exit Code Description :File $filename - is missing in Input Directory" >a.log
exit
else
count1=`awk 'END {print NR}' $filename`
echo "$count1">>a.log
count2=`awk 'END {print... (4 Replies)
Discussion started by: ravi214u
4 Replies
5. Shell Programming and Scripting
hi,
When i try to run the code below, i get the following error
"ksh: syntax error: `(' unexpected"
i am not able to figure it out. Can anyone help me?
Code: (2 Replies)
Discussion started by: ragavhere
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
This is my script to catch any oracle errors.
In this, the $sqlerr returns
ORA-01017: invalid username/password; logon denied
when i specify wrong username/password
the if condition is failing. how can i resolve the issue.
the if statement gives error
sqloutput=`sqlplus -s -L... (1 Reply)
Discussion started by: Swapna173
1 Replies
7. Shell Programming and Scripting
I am working on script for stale nfs.
the file consists of
cat data01stale.log
- - - - /abcd/backup
- - - - /abcd/data
Script (16 Replies)
Discussion started by: nareshkumar522
16 Replies
8. Shell Programming and Scripting
Hi
Can you please tell me what is wrong with this line:
if && ]; then
basically i want to check if x = 12 and F (Filename) end with 'g'. But it is throwing syntax error. (7 Replies)
Discussion started by: rtagarra
7 Replies
9. Shell Programming and Scripting
Can anybody tell the correct way to use the following awk pattern check within an if statement?
When I run this command outside of the if statement
cat /tmp/test2.out | awk -v T=$TIME -v G=$GROUP -v C=$CDATE '$0 ~ T && $0 ~ G && $0 ~ C' | grep -i "Starting the group"
I get the following... (0 Replies)
Discussion started by: kieranfoley
0 Replies
10. UNIX for Beginners Questions & Answers
hello all
im new to unix and when i use below script i get an error :
#! /bin/bash
Echo -e "enter the name of the file : \c"
read file_name
if
then
echo "$file_name found"
else
echo "$file_name not found"
fi
running the script i get below error :
$ ./hello (26 Replies)
Discussion started by: Ibrahims1
26 Replies
LEARN ABOUT MINIX
vwright
VWRIGHT(1) General Commands Manual VWRIGHT(1)
NAME
vwright - normalize a RADIANCE view, shift it to the right
SYNOPSIS
vwright [ view options ] distance
vwright [ view options ] name
DESCRIPTION
In the first form, vwright shifts a RADIANCE view the specified distance to the right, putting out a complete set of view parameters in a
single line on the standard output. This utility is most often used to compute a right-eyed view from a left-eye view for stereo imaging.
If no options are specified on the command line, vwright reads a view from its standard input.
The distance given is in world coordinate units. A negative value indicates a shift to the left rather than the right.
The second form substitutes a name prefix in place of the shift distance, and produces constant assignments on the standard output suitable
for passing directly to rcalc(1). For a given prefix N, the constant names are as follows:
Nt: view type ('v'==1,'l'==2,'a'==3,'h'==4,'c'==5,'s'==6)
Npx: view point x value
Npy: view point y value
Npz: view point z value
Ndx: view direction x value (normalized)
Ndy: view direction y value (normalized)
Ndz: view direction z value (normalized)
Nd: view focal distance
Nux: view up vector x value (normalized)
Nuy: view up vector y value (normalized)
Nuz: view up vector z value (normalized)
Nh: view horizontal size
Nv: view vertical size
Ns: view shift
Nl: view lift
No: view fore clipping distance
Na: view aft clipping distance
Nhx: derived horizontal image vector x value (normalized)
Nhy: derived horizontal image vector y value (normalized)
Nhz: derived horizontal image vector z value (normalized)
Nhn: derived horizontal image vector multiplier
Nvx: derived vertical image vector x value (normalized)
Nvy: derived vertical image vector y value (normalized)
Nvz: derived vertical image vector z value (normalized)
Nvn: derived vertical image vector multiplier
EXAMPLES
To start rpict(1) on a view .06 meters left of the view in the file "right.vf":
rpict `vwright -.06 < right.vf` scene.oct > right.hdr &
To move the rad(1) view named "left" 2.5 inches to the right and render from there:
rad -v "right `rad -n -s -V -v left examp.rif | vwright 2.5`" examp.rif &
To pass a view to rcalc for conversion to some other view:
rcalc -n -e `vwright orig < orig.vf` -f viewmod.cal -o view.fmt > new.vf
AUTHOR
Greg Ward
SEE ALSO
pdfblur(1), rad(1), rcalc(1), rpict(1), rvu(1)
RADIANCE
8/29/96 VWRIGHT(1)