01-21-2013
And a single = instead of ==
This User Gave Thanks to Scrutinizer For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
Can someone please tell me what is wrong with this (ksh)..
if + ]] then
echo ${COMP_TEMP}
fi
What i need here is, say if the variable is a 1 or 2 digit number, then execute the if loop. Basically the variable can either be 1-30 or some other character sequence say '?', '&&'... (4 Replies)
Discussion started by: psynaps3
4 Replies
2. Shell Programming and Scripting
Sorry for such a dreadful title, but I'm not sure how to be more descriptive. I'm hoping some of the more gurutastic out there can take a look at a solution I came up with to a problem, and advice if there are better ways to have gone about it.
To make a long story short around 20K pieces of... (2 Replies)
Discussion started by: DeCoTwc
2 Replies
3. Shell Programming and Scripting
I'm trying to understand if it's possible to create a set of variables that are numbered based on another variable (using eval) in a loop, and then call on it before the loop ends.
As an example I've written a script called question (The fist command is to show what is the contents of the... (2 Replies)
Discussion started by: DeCoTwc
2 Replies
4. UNIX for Advanced & Expert Users
I'd like to
1. Check and compare the 10,000 pnt files contains single record from the /$ROOTDIR/scp/inbox/string1 directory against 39 bad pnt files from the /$ROOTDIR/output/tma/pnt/bad/string1 directory based on the fam_id column value start at position 38 to 47 from the record below. Here is... (1 Reply)
Discussion started by: hanie123
1 Replies
5. Shell Programming and Scripting
Hi,
In the code included below, the string comparision is not working fine. Please help
while (( find_out >= i ))
do
file=`head -$i f.out|tail -1`
dir=`dirname $file`
cd $dir
Status=""
if ; then
Status=`cvs -Q status... (3 Replies)
Discussion started by: sudvishw
3 Replies
6. Shell Programming and Scripting
The string comparison highlighted below is not working fine. Please help:
while read line
do
# Get File name by deleting everything that preceedes and follows Filename as printed in cvs status' output
f_name=`echo $line | sed -e 's/^File://' -e 's/ *Status:.*//' | awk '{print $NF}'`
... (4 Replies)
Discussion started by: sudvishw
4 Replies
7. Shell Programming and Scripting
i am having a file contants as below
my requirement is
for file in `awk -F "," '{print $8,$9}'` <temp.txt
echo "$file"
echo "$file">test.txt
a=`awk -F "," '{print $1}' `<test.txt
b=`awk -F "," '{print $2}' `<test.txt
but script reads , i want both the vales for further... (5 Replies)
Discussion started by: sagar_1986
5 Replies
8. Shell Programming and Scripting
hi all,
i have two files:
test1 contains : one two three four five (on separate lines)
test2 contains: one ten nine (on separate lines)
I want to compare two files, test1 against test2. if any word from test1 does not match test2 display it. can someone help me with a while loop on this.
... (4 Replies)
Discussion started by: sbk785
4 Replies
9. Shell Programming and Scripting
Greetings Experts,
I need to handle the views created over monthly retention tables
for which every new table in YYYYMMDD format, there is
equivalent view created and the older table which might be
dropped, the view over it has to be re-created over a dummy
table so that it doesn't fail.... (2 Replies)
Discussion started by: chill3chee
2 Replies
10. Shell Programming and Scripting
Hello, please assist:
users="test1 test2"
keytest1="abcd"
keytest2="dbcd"
for i in $users
do
echo "$key${i}" > fileout
done
So, my objective is to take the current user (ie test1) in loop and echo its associated keyname (ie keytest1) variable to a file.
The echo... (2 Replies)
Discussion started by: motdman
2 Replies
LEARN ABOUT DEBIAN
icetsingleimagestrategy
icetSingleImageStrategy(3) IceT Reference icetSingleImageStrategy(3)
NAME
icetSingleImageStrategy -- set the sub-strategy used to composite the image for a single tile.
Synopsis
#include <IceT.h>
void icetSingleImageStrategy( IceTEnum strategy );
Description
The main IceT algorithms are specially designed to composite data defined on multiple tiles. Some of these algorithms, namely ICET_STRAT-
EGY_REDUCE and ICET_STRATEGY_SEQUENTIAL, operate at least in part by compositing single images together. IceT also comes with multiple sep-
arate strategies for performing this single image compositing, and this can be selected with the icetSingleImageStrategy function.
A single image strategy is chosen from one of the following provided enumerated values:
ICET_SINGLE_IMAGE_STRATEGY_AUTOMATIC
Automatically chooses which single image strategy to use based on the number of processes participating in the composition.
ICET_SINGLE_IMAGE_STRATEGY_BSWAP
The classic binary swap compositing algorithm. At each phase of the algorithm, each process partners with another, sends half of
its image to its partner, and receives the opposite half from its partner. The processes are then partitioned into two groups that
each have the same image part, and the algorithm recurses.
ICET_SINGLE_IMAGE_STRATEGY_RADIXK
The radix-k acompositing algorithm is similar to binary swap except that groups of processes can be larger than two. Larger groups
require more overall messages but overlap blending and communication. The size of the groups is indirectly controlled by the
ICET_MAGIC_K environment variable or CMake variable.
ICET_SINGLE_IMAGE_STRATEGY_TREE
At each phase, each process partners with another, and one of the processes sends its entire image to the other. The algorithm
recurses with the group of processes that received images until only one process has an image.
By default IceT sets the single image strategy to ICET_SINGLE_IMAGE_STRATEGY_AUTOMATIC when a context is created. This is the single image
strategy that will be used if no other is selected.
Errors
ICET_INVALID_ENUM
The strategy argument does not represent a valid single image strategy.
Warnings
None.
Bugs
None known.
Copyright
Copyright (C)2010 Sandia Corporation
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.
This source code is released under the New BSD License.
See Also
icetDrawFrame(3), icetGetStrategyName(3) icetSingleImageStrategy(3)
IceT Reference August 9, 2010 icetSingleImageStrategy(3)