Can someone tell me how to do this using sed, awk, or any other basic shell scripting? Basically I have two text files with the following contained in each file:
File A:
a b c
d e f
g h i
File B:
1
2
3
I want the final outcome to look like this:
a b c 1
d e f 2
g h i 3
How... (3 Replies)
Hi,
I want to get the latest added part of a text file sent over the network to for analysis. Is there a tool to use to keep track of which part of a text file that has already been analysed so only the "new" lines will be sent and handled? I have checked a few tools but I still donīt know how to... (3 Replies)
Hi folks,
I want Trailer to be added into the txt file the format is below.
flatfile-> abc.txt
count of the file is 500 records.
I want the trailer in this format: TRAILER|500 (pipe delimeter).
Please suggest the comands ASAP.
Rgds
Ann (5 Replies)
Hi All,
I want to create a shell script which dynamically create text files. i am using the following script
$i=1
while
do
cat > test_$i.txt
done
but while running the script it was stopping(the cursor not going to next step, i have to enter ctrl+c to make it stop). it is creating only... (2 Replies)
Hello All,
I would like to create a script to echo a text where a (.) dot is added every 2 seconds to the end of this text (with a limit of 10 dots) as long as a file copy or ftp is ongoing and once the copy is finished it adds "done" to the end of this text line. please see the below example:
... (6 Replies)
Hi,
I have an html page like this:
<html>
<body>
<form action="test.php" method = "post">
Enter your name:<input name="search" type = "text" size ="40">
<br>
Enter your age:<input name="age" type = "text" size ="20">
<input type = "submit" name="submit" value="search">
<input type =... (1 Reply)
I want to make a script which takes the number of argument, add those argument and gives output to the user, but I am not getting through...
Script that i am using is below :
#!/bin/bash
sum=0
for i in $@
do
sum=$sum+$1
echo $sum
shift
done
I am executing the script as... (3 Replies)
Dear Friends,
I have file a.txt
1|2|3|4|5|6|7|8
a|b|c|d|e|f|g|h
i am using the below code to swap the fields in file
awk -F\| '{print $5,$1,$2,$3,$4,$6,$7,$8}' OFS=\| a.txt > output.txt
output.txt
5|1|2|3|4|6|7|8
e|a|b|c|d|f|g|h
The above command is working fine. I am... (4 Replies)
I am trying to find a code that can help me mail to a list of recipients which are in a text file.
Sample code
$cat recipient.txt
me@test.com
me1@test.com
me2@test.com
I want a mailx step that can read contents of recipient.txt and mail to all the users.
I don't want to use mails... (1 Reply)
Hi All,
I have a script which intends to create as many variables at runtime, as the number of parameters passed to it. The script needs to save these parameter values in the variables created and print them
abc.sh
----------
export Numbr_Parms=$#
export a=1
while
do
export... (3 Replies)
Discussion started by: dev.devil.1983
3 Replies
LEARN ABOUT CENTOS
glscissorarray
GLSCISSORARRAY(3G) OpenGL Manual GLSCISSORARRAY(3G)NAME
glScissorArray - define the scissor box for multiple viewports
C SPECIFICATION
void glScissorArrayv(GLuint first, GLsizei count, const GLint *v);
PARAMETERS
first
Specifies the index of the first viewport whose scissor box to modify.
count
Specifies the number of scissor boxes to modify.
v
Specifies the address of an array containing the left, bottom, width and height of each scissor box, in that order.
DESCRIPTION
glScissorArrayv defines rectangles, called scissor boxes, in window coordinates for each viewport. first specifies the index of the first
scissor box to modify and count specifies the number of scissor boxes to modify. first must be less than the value of GL_MAX_VIEWPORTS,
and first + count must be less than or equal to the value of GL_MAX_VIEWPORTS. v specifies the address of an array containing integers
specifying the lower left corner of the scissor boxes, and the width and height of the scissor boxes, in that order.
To enable and disable the scissor test, call glEnable() and glDisable() with argument GL_SCISSOR_TEST. The test is initially disabled for
all viewports. While the test is enabled, only pixels that lie within the scissor box can be modified by drawing commands. Window
coordinates have integer values at the shared corners of frame buffer pixels. glScissor(0,0,1,1) allows modification of only the lower
left pixel in the window, and glScissor(0,0,0,0) doesn't allow modification of any pixels in the window.
When the scissor test is disabled, it is as though the scissor box includes the entire window.
ERRORS
GL_INVALID_VALUE is generated if first is greater than or equal to the value of GL_MAX_VIEWPORTS.
GL_INVALID_VALUE is generated if first + count is greater than or equal to the value of GL_MAX_VIEWPORTS.
GL_INVALID_VALUE is generated if any width or height specified in the array v is negative.
ASSOCIATED GETS
glGet() with argument GL_SCISSOR_BOX
glIsEnabled() with argument GL_SCISSOR_TEST
SEE ALSO
glEnable(), glViewport(), glViewportIndexed(), glViewportArray()
COPYRIGHT
Copyright (C) 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication
License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
AUTHORS
opengl.org
opengl.org 06/10/2014 GLSCISSORARRAY(3G)