08-23-2007
Cool Kahuna...That's right...It needs a dragon's eye to find out thanks a lot...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I was wondering how I can modify this for loop, so it only loops through the filenames that do not have an ".old" extension.
for filename in $(ls "$1")
do
echo $filename | grep '\.old$' > /dev/null
if
then mv $1/$filename $1/$filename.old
fi
done (5 Replies)
Discussion started by: ralts01
5 Replies
2. Shell Programming and Scripting
I have 2 files one of them has all the all mac addresses and the other one has all the ip addresses. Basically, I want to loop thru those 2 files and generate a configuration like below:
host www184.domain.com {
hardware ethernet 00:13:72:3B:B4:3A;
fixed-address 192.168.0.184;
}... (4 Replies)
Discussion started by: kkkk
4 Replies
3. Shell Programming and Scripting
function ext
{
echo "THANKS & WELCOME BACK"
}
function upc
{
echo "TO EXPORT UPROC GIVE UPROC NAME PER LINE IN THE input.txt and PRESS Y"
echo "TO GO BACK PRESS 99"
read parm0
if ;
then
start
elif ;
then
for i in `cat input.txt` ; do
echo $i
$UXEXE/uxext upr upr=$i... (0 Replies)
Discussion started by: kojo
0 Replies
4. Shell Programming and Scripting
Hi, my script is waiting for 3 files to come to a folder for 30 min but even when all the files arrive in the folder it's still waiting for these three files. Files can come with in 2 min and I want it to start processing them immediately after all the files arrive in the folder.
until ; do... (3 Replies)
Discussion started by: gurpartap
3 Replies
5. Shell Programming and Scripting
sup experts..i had a script which was bugging me..was hoping someone could point out the issue here
Input file: space separated 2 columns
I wanted to print out the 2 columns after assigning them to variables ( bascially the same output but iterate through line by line ). The code worked... (7 Replies)
Discussion started by: foal_newbie
7 Replies
6. Shell Programming and Scripting
Hi,
I am trying to move a file from remote server to local server and when the transfer completes successfully i call a script in remote server to remove the file which was successfully transferred.
I do this by first getting the list of file in remote server and move the text file to local... (8 Replies)
Discussion started by: funonnet
8 Replies
7. Shell Programming and Scripting
Hi,
i=0
t5=6000001
while
do
i=`expr $i + 1`
t5=`expr $t5 + 1`
echo $t5
done
I am able to increment "col3" value but unable to get col1,col2 value.
Input:
t1=10001
t2=abc
t3=ghkc (5 Replies)
Discussion started by: onesuri
5 Replies
8. Shell Programming and Scripting
Hi,
I have prepared a script to search for backup file information on the Linux server. Script works fine for the most part except the echo statement inside an IF conditional block displays the message ''snapshot directory not found on xxxxx" even though the .snapshot directory is found a... (11 Replies)
Discussion started by: svajhala
11 Replies
9. Shell Programming and Scripting
Hi Team,
I have for loop in my shell script. Which basically loop through all files in the directory, When some files are in the directory it works just fine.
But if there are no files at all..still the for loop try to execute. Please help. Below is the code.
#!/bin/ksh
echo "Program... (5 Replies)
Discussion started by: bharath561989
5 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I just have started learning shell scripting (sh). Why do i only get the date?
while read dt
do
echo "Date : ${dt}
sed -n '/${dt}/,/${dt}/p' file1.log | grep -w ERROR
done < date1.dat
INPUT - date1.dat
2019-04-05 04:58:25
2019-04-05 04:58:26
2019-04-05 05:00:56... (3 Replies)
Discussion started by: margel
3 Replies
LEARN ABOUT MOJAVE
glclipplane
GLCLIPPLANE(3G) GLCLIPPLANE(3G)
NAME
glClipPlane - specify a plane against which all geometry is clipped
C SPECIFICATION
void glClipPlane( GLenum plane,
const GLdouble *equation )
PARAMETERS
plane Specifies which clipping plane is being positioned. Symbolic names of the form GL_CLIP_PLANEi, where i is an integer between 0
and GL_MAX_CLIP_PLANES-1, are accepted.
equation Specifies the address of an array of four double-precision floating-point values. These values are interpreted as a plane equa-
tion.
DESCRIPTION
Geometry is always clipped against the boundaries of a six-plane frustum in x, y, and z. glClipPlane allows the specification of addi-
tional planes, not necessarily perpendicular to the x, y, or z axis, against which all geometry is clipped. To determine the maximum num-
ber of additional clipping planes, call glGetIntegerv with argument GL_MAX_CLIP_PLANES. All implementations support at least six such clip-
ping planes. Because the resulting clipping region is the intersection of the defined half-spaces, it is always convex.
glClipPlane specifies a half-space using a four-component plane equation. When glClipPlane is called, equation is transformed by the
inverse of the modelview matrix and stored in the resulting eye coordinates. Subsequent changes to the modelview matrix have no effect on
the stored plane-equation components. If the dot product of the eye coordinates of a vertex with the stored plane equation components is
positive or zero, the vertex is in with respect to that clipping plane. Otherwise, it is out.
To enable and disable clipping planes, call glEnable and glDisable with the argument GL_CLIP_PLANEi, where i is the plane number.
All clipping planes are initially defined as (0, 0, 0, 0) in eye coordinates and are disabled.
NOTES
It is always the case that GL_CLIP_PLANEi = GL_CLIP_PLANE0+i.
ERRORS
GL_INVALID_ENUM is generated if plane is not an accepted value.
GL_INVALID_OPERATION is generated if glClipPlane is executed between the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGetClipPlane
glIsEnabled with argument GL_CLIP_PLANEi
SEE ALSO
glEnable
GLCLIPPLANE(3G)