08-03-2011
Using awk to log transform a column in a tab-delimited text file?
How do I use awk to log transform the fifth column of a tab-delimited text file? Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hey Everybody,
I am having much trouble figuring this out, as I am not really a programmer..:mad:
Datafile.txt
Column0 Column1 Column2
ABC DEF xxxGHI
I am running using WGET on a cronjob to grab a datafile, but I need to cut the first three characters from... (6 Replies)
Discussion started by: rickdini
6 Replies
2. Shell Programming and Scripting
I have a large text-file with tab-delimited genetic data that looks like:
KSC112 KSC234 0 0 1 1 A G C T
I simply wan to delete the first column, but since the file has 600 000 columns, it is not possible with awk (seems to be limited at 32k columns).
Does anyone have an idea how to do this? (2 Replies)
Discussion started by: andmal
2 Replies
3. Shell Programming and Scripting
using awk to substitute data in a column delimited text file
hello i would like to use awk to do the following calculation from the following snippet.
input file
C;2390 ;CV BOUILLOTTE 2L 2FACES NERVUREES ;1.00 ;3552612239004;13417 ;25 ;50 ; 12;50000 ; ; ... (3 Replies)
Discussion started by: iindie
3 Replies
4. UNIX for Dummies Questions & Answers
I want to add a new column to a tab delimited text file. It will be the first column and it will just be 1's. How do I go about doing that? Thanks! (1 Reply)
Discussion started by: evelibertine
1 Replies
5. Shell Programming and Scripting
I have a file which looks like this:
73450 articles and news developmental psychology 2006-03-30 16:22:40 1 http://www.usnews.com
73450 articles and news developmental psychology 2006-03-30 16:22:40 2 http://www.apa.org
73450 articles and news developmental psychology 2006-03-30... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
6. UNIX for Dummies Questions & Answers
I have a file having the following entries:
test1 test2 test3
11 22 33
22 44 66
99 99 44
---
I want to add a column so that the above file becomes:
test1 test2 test3 notest
11 22 33 *
22 44 66 *
99 99 44 *
---
Thanks (6 Replies)
Discussion started by: mary271
6 Replies
7. Shell Programming and Scripting
Hi,
Can anyone please tell me about how we can delete an entire column from a tab delimited file?
Mu input_file.txt looks like this:
And I want the output as:
I used the below code
nawk -v d="1" 'BEGIN{FS=OFS="\t"}{$d=""}{print}' input_file.txtBut in the output, the first column is... (5 Replies)
Discussion started by: sampoorna
5 Replies
8. UNIX for Dummies Questions & Answers
I have tried the following to no avail.
xargs -n8 < test.txt
awk '{if(NR%6!=0){p=""}else{p="\n"};printf $0" "p}' Mod_Alm_log.txt > test.txt
I have tried different variations of the above, the problem is mixes lines together.
And it includes the tags "%a and %A" I need them to be all tab... (16 Replies)
Discussion started by: mytouchsr
16 Replies
9. UNIX for Dummies Questions & Answers
Hi, I have a rquirement in unix as below .
I have a text file with me seperated by | symbol and i need to generate a excel file through unix commands/script so that each value will go to each column.
ex:
Input Text file:
1|A|apple
2|B|bottle
excel file to be generated as output as... (9 Replies)
Discussion started by: raja kakitapall
9 Replies
10. UNIX for Beginners Questions & Answers
Hello Everyone..
I want to replace the retail col from FileI with cstp1 col from FileP if the strpno matches in both files
FileP.txt
... (2 Replies)
Discussion started by: YogeshG
2 Replies
LEARN ABOUT DEBIAN
glbindtransformfeedback
GLBINDTRANSFORMFEEDB(3G) [FIXME: manual] GLBINDTRANSFORMFEEDB(3G)
NAME
glBindTransformFeedback - bind a transform feedback object
C SPECIFICATION
void glBindTransformFeedback(GLenum target, GLuint id);
PARAMETERS
target
Specifies the target to which to bind the transform feedback object id. target must be GL_TRANSFORM_FEEDBACK.
id
Specifies the name of a transform feedback object reserved by glGenTransformFeedbacks().
DESCRIPTION
glBindTransformFeedback binds the transform feedback object with name id to the current GL state. id must be a name previously returned
from a call to glGenTransformFeedbacks(). If id has not previously been bound, a new transform feedback object with name id and initialized
with with the default transform state vector is created.
In the initial state, a default transform feedback object is bound and treated as a transform feedback object with a name of zero. If the
name zero is subsequently bound, the default transform feedback object is again bound to the GL state.
While a transform feedback buffer object is bound, GL operations on the target to which it is bound affect the bound transform feedback
object, and queries of the target to which a transform feedback object is bound return state from the bound object. When buffer objects are
bound for transform feedback, they are attached to the currently bound transform feedback object. Buffer objects are used for trans- form
feedback only if they are attached to the currently bound transform feedback object.
ERRORS
GL_INVALID_ENUM is generated if target is not GL_TRANSFORM_FEEDBACK.
GL_INVALID_OPERATION is generated if the transform feedback operation is active on the currently bound transform feedback object, and that
operation is not paused.
GL_INVALID_OPERATION is generated if id is not zero or the name of a transform feedback object returned from a previous call to
glGenTransformFeedbacks(), or if such a name has been deleted by glDeleteTransformFeedbacks().
ASSOCIATED GETS
glGet() with argument GL_TRANSFORM_FEEDBACK_BINDING
SEE ALSO
glGenTransformFeedbacks(), glDeleteTransformFeedbacks(), glIsTransformFeedback(), glBeginTransformFeedback(), glPauseTransformFeedback(),
glResumeTransformFeedback(), glEndTransformFeedback()
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/.
[FIXME: source] 05/30/2012 GLBINDTRANSFORMFEEDB(3G)