Try this:
Not that the rows/columns are not sorted.
But honestly, for this kind of data-mangling job, you are better off using some other data processing tool. E.g. with GNU R and "reshape" package it's piece of cake:
Last edited by mirni; 03-13-2013 at 12:17 AM..
Reason: R addendum
Hi,
Can any one please help me in converting a tab delimited file in .csv file.
Records in my file are similar to mentioned below:
DET 001 0201 AC032508970 01478E1X8
DET 002 0202 AC032508971 01478E1X8
Could any one please suggest me what approach would be more suitable for this or if... (5 Replies)
I have a text file that made using text editor in Ubuntu. However the text file is not being recognized as space or tab delimited, the formatting seems to be messed up. How can I convert the text file into tab delimited format? (3 Replies)
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)
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)
Hello,
I have a text file with space and tab (mixed) delimited file and need to convert into CSV.
# cat test.txt
/dev/rmt/tsmmt32 HP Ultrium 6-SCSI J3LZ 50:03:08:c0:02:72:c0:b5 F00272C0B5 0/0/6/1/1.145.17.255.0.0.0 /dev/rmt/c102t0d0BEST
/dev/rmt/tsmmt37 ... (6 Replies)
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)
Hi
i have a problem in my job
i try to convert an excel file (xls extention) to text file (tab delimited), but no result with this comand
cat xxx.xls > xxx.txt
Do you have eny idea?
PS: sorry for my english
Thanks!! (4 Replies)
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 SUSE
glutreshapefunc
glutReshapeFunc(3GLUT) GLUT glutReshapeFunc(3GLUT)NAME
glutReshapeFunc - sets the reshape callback for the current window.
SYNTAX
void glutReshapeFunc(void (*func)(int width, int height));
ARGUMENTS
func The new reshape callback function.
DESCRIPTION
glutReshapeFunc sets the reshape callback for the current window. The reshape callback is triggered when a window is reshaped. A reshape
callback is also triggered immediately before a window's first display callback after a window is created or whenever an overlay for the
window is established. The width and height parameters of the callback specify the new window size in pixels. Before the callback, the cur-
rent window is set to the window that has been reshaped.
If a reshape callback is not registered for a window or NULL is passed to glutReshapeFunc (to deregister a previously registered callback),
the default reshape callback is used. This default callback will simply call glViewport(0,0,width,height) on the normal plane (and on the
overlay if one exists).
If an overlay is established for the window, a single reshape callback is generated. It is the callback's responsibility to update both the
normal plane and overlay for the window (changing the layer in use as necessary).
When a top-level window is reshaped, subwindows are not reshaped. It is up to the GLUT program to manage the size and positions of subwin-
dows within a top-level window. Still, reshape callbacks will be triggered for subwindows when their size is changed using glutReshapeWin-
dow.
SEE ALSO
glutDisplayFunc, glutReshapeWindow
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT 3.7 glutReshapeFunc(3GLUT)