Hi all,
I have a file with single white space delimited values, I want to convert them to a tab delimited file.
I tried sed, tr ... but nothing is working.
Thanks,
Rajeevan D (16 Replies)
Hi
I have 100 files each with only one column of 10 numbers that I wish to add to a new file so that I get 100 columns collected in one tab delimited file.
I tried something like:
foreach num (1 2 3)
foreach? gawk -F '\t' '{$num=$1}1' OFS='\t' Eu9_10.2patienter/pospep_10.2patient$num >>... (5 Replies)
Hi Forum
I have a tab delimited file that opens well in Openoffice calc (excel). But when I perform any operation in command line, it reads the file incorrectly. When I 'save As' the same file in office as tab delimited then it works fine.
The file that I think is tab delimited is actually... (8 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)
Hi How to make tab delimited file to space delimited?
in put file:
ABC kgy
jkh ghj
ash kjl
o/p file:
ABC kgy
jkh ghj
ash kjl
Use code tags, thanks. (1 Reply)
Hi Experts,
I have a tab deliminated file as below
myfile.txt
Local Group Memberships *Administrators *Guests
I need data in below format starting from 4th position.
myfile1.txt
Administrators Guests
the above one is just an example and there could... (15 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 requirement to create tab delimited file with values coming from variables.
File will contain only two columns separated by tab.
Header will be added once.
Values will be keep adding upon the script run.
If values already exists then values will be replaced.
I have done so... (1 Reply)
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 CENTOS
xmtabcreate
XmTabCreate(library call) XmTabCreate(library call)
NAME
XmTabCreate -- A convenience function that creates a tab stop
SYNOPSIS
#include <Xm/Xm.h>
XmTab XmTabCreate(
float value,
unsigned char units,
XmOffsetModel offset_model,
unsigned char alignment,
char *decimal);
DESCRIPTION
XmTabCreate creates a tab stop at a position defined by the value and units arguments.
value Specifies the floating point value to be used in conjunction with units to calculate the location of the tab stop. Note that
negative values are not permitted.
units Specifies the unit type (for example, XmMILLIMETERS) to be used in conjunction with value to calculate the location of the tab
stop. You can specify any unit described by the XmConvertUnits reference page. For resources of type, dimension, or position,
you can specify units as described in the XmNunitType resource of the XmGadget, XmManager, or XmPrimitive reference page.
offset_model
Specifies whether the tab value represents an absolute position or a relative offset from the previous tab. Valid values are
XmABSOLUTE and XmRELATIVE.
alignment Specifies how the text should be aligned relative to this tab stop. Valid values are XmALIGNMENT_BEGINNING.
decimal Specifies the multibyte character in the current language environment to be used as the decimal point for a decimal aligned tab
stop. This is currently unused.
RETURN
Returns a newly allocated XmTab. The application is responsible for managing this allocated space. The application can recover this allo-
cated space by calling XmTabFree.
RELATED XmTab(3) and XmTabFree(3).
XmTabCreate(library call)