You need to specify the tab delimiter by the -d option.
But you can not hit tab key because shell will not accept tab key. Also you can not give '\t' as its argument.Because cut -d expects a single character as its argument.
To give tab stop in the shell you just hit ctrl+v and ctrl+i
I want to read only one column in "|" delimited file and write that column to a new file.
For Ex:
Input File
1|abc|324|tt
2|efd|11|cbcb
3||1|fg
4|ert|23|88
Output : I want to read column 3 in diff file.
324
11
1
88
Can anyone give me inputs on this ? (2 Replies)
Hi
I have a txt file with 4 columns where I need to add 4 empty columns in the middle meaning that I need what is currently column 4 to be column 8 in a new file.
The idea is that I have to use the file as input in a program that reads the data in column 1 and 8, so the content of the other... (8 Replies)
Hi,
So my file looks like this:
title number
JR 2
JR 2
JR 4
JR 5
NM 5
NM 8
NM 2
NM 8
I used this line that I wrote to convert it to rows so it will look like this:
awk -F"\t" '!/^$/{a=a" "$3} END {for ( i in a) {print i,a}}' occ_output.tab > test.txt
JR 2 2 4 5
NM 5 8... (4 Replies)
Hello Gurus,
I have a text file containing nearly 12,000 tab delimited characters with 4000 rows. If the file size is small, excel can convert the text into coloumns. However, the file that I have is very big. Can some body help me in solving this problem?
The input file example,
... (6 Replies)
I have a file which was pipe delimited, I need to make it tab delimited. I tried with sed but no use
cat file | sed 's/|//t/g'
The above command substituted "/t" not tab in the place of pipe.
Sample file:
abc|123|2012-01-30|2012-04-28|xyz
have to convert to:
abc 123... (6 Replies)
Hello,
I have some tab delimited files that may contain blank columns. I would like to delete the blank columns if they exist. There is no clear pattern for when a blank occurs.
I was thinking of using sed to replace instances of double tab with blank,
sed 's/\t\t//g'
All of the examples... (2 Replies)
Hi all ,
I have a file having 12 columns tab delimited .
I need to read this file and remove the column 3 and column 4 and insert a word in column 3 as "AVIALABLE "
Is there a way to do this . I am trying like below
Thanks
DJ
cat $FILENAME|awk -F"\t" '{ print $1 "\t... (3 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)
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
xdbegetvisualinfo
XdbeGetVisualInfo(3) X FUNCTIONS XdbeGetVisualInfo(3)NAME
XdbeGetVisualInfo - Get dbe Visual Informations
SYNOPSIS
#include <X11/extensions/Xdbe.h>
XdbeScreenVisualInfo *XdbeGetVisualInfo(
Display *dpy,
Drawable *screen_specifiers,
int *num_screens)
DESCRIPTION
This function returns information about which visuals support double buffering. The argument num_screens specifies how many elements there
are in the screen_specifiers list. Each drawable in screen_specifiers designates a screen for which the supported visuals are being
requested. If num_screens is zero, information for all screens is requested. In this case, upon return from this function, num_screens
will be set to the number of screens that were found. If an error occurs, this function returns NULL, else it returns a pointer to a list
of XdbeScreenVisualInfo structures of length num_screens. The nth element in the returned list corresponds to the nth drawable in the
screen_specifiers list, unless num_screens was passed in with the value zero, in which case the nth element in the returned list corre-
sponds to the nth screen of the server, starting with screen zero. The XdbeScreenVisualInfo structure has the following fields:
int count
XdbeVisualInfo *visinfo
count specifies the number of items in visinfo. visinfo specifies a list of visuals, depths, and performance hints for this screen.
The XdbeVisualInfo structure has the following fields:
VisualID visual
int depth
int perflevel
visual specifies one visual ID that supports double-buffering. depth specifies the depth of the visual. perflevel is a performance hint.
The only operation defined on a perflevel is comparison to a perflevel of another visual on the same screen. The visual having the higher
perflevel is likely to have better double-buffering graphics performance than the visual having the lower perflevel. Nothing can be
deduced from the following: the magnitude of the difference of two perflevels, a perflevel value in isolation, or comparing perflevels from
different servers.
ERRORS
BadDrawable
One or more values passed in screen_specifiers is not a valid drawable.
SEE ALSO
DBE, XdbeAllocateBackBufferName(), XdbeBeginIdiom(), XdbeDeallocateBackBufferName(), XdbeEndIdiom(), XdbeFreeVisualInfo(), XdbeGetBack-
BufferAttributes(), XdbeQueryExtension(), XdbeSwapBuffers().
X Version 11 libXext 1.1.1 XdbeGetVisualInfo(3)