i have this file which has the following contents:
,-0.3000 ,-0.3000 ,-0.3000
,-0.9000 ,-0.9000 ,-0.9000
i would like to get this:
-0.3-0.9-0.3-0.9-0.3-0.9
so far i am trying:
awk '{for(i=1; i<=NF; i++) {printf("%f\n",$i)}}' test1 > test2
any help... (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 text file that has three columns. But at the end of the text file, there are trailing lines that have missing second and third columns:
4 0.04972604 KLHL28
4 0.0497332 CSTB
4 0.04979822 AIF1
4 0.04983331 DECR2
4 0.04990344 KATNB1
4
4
4
4
How can I remove the trailing... (3 Replies)
Hi Gurus,
How to convert rows in to columns using linux shell scripting
Input is like (sample.txt)
ABC
DEF
GHI
JKL
MNO
PQR
STU
VWX
YZA
BCD
output should be (sampleoutput.csv)
ABC,DEF,GHI,JKL,MNO
PQR,STU,VWX,YZA,BCD (2 Replies)
I am looking to print the data in columns and after every 3 words it should be a new row.
cat example.out | awk 'END { for (i = 0; ++i < m;) print _;print _ }{ _ = _ x ? _ OFS $1 : $1}' m=1| grep -i INNER
I am looking to print in a new line after every 3 words.
... (2 Replies)
Hello,
I want to concatenate 2-columns by 2-columns separated by colon. How can I do so? For example, I have a text file containing 6 columns separated by tab. I want to concatenate column 1 and 2; column 3 and 4; column 5 and 6, respectively, and put a colon in between.
input file:
1 0 0 1... (10 Replies)
hi folks,
I have a sample data like what is shown below:
1,ID=1000
1,Org=CedarparkHospital
1,cn=john
1,sn=doe
1,uid=User001
2,uid=User002
2,ID=2000
2,cn=steve
2,sn=jobs
2,Org=Providence
I would like to convert it into the below format:
1,1000,CedarparkHospital,john,doe,User001... (11 Replies)
Discussion started by: vskr72
11 Replies
LEARN ABOUT SUSE
wmc
WMC(1) Wine Developers Manual WMC(1)NAME
wrc - Wine Message Compiler
SYNOPSIS
wmc [options] [inputfile]
DESCRIPTION
wmc compiles messages from inputfile into FormatMessage[AW] compatible format encapsulated in a resourcescript format. wmc outputs the
data either in a standard .bin formatted binary file, or can generated inline resource data.
wmc takes only one inputfile as argument (see BUGS). The inputfile normally has extension .mc. The messages are read from standard input if
no inputfile is given. If the outputfile is not specified with -o, then wmc will write the output to inputfile.{rc,h}. The outputfile is
named wmc.tab.{rc,h} if no inputfile was given.
OPTIONS -B x Set output byte-order x={n[ative], l[ittle], b[ig]}. Default is n[ative].
-c Set 'custom-bit' in message-code values.
-d NON-FUNCTIONAL; Use decimal values in output
-D Set debug flag. This results is a parser trace and a lot of extra messages.
-h Print an informative usage message.
-H file
Write headerfile to file. Default is inputfile.h.
-i Inline messagetable(s). This option skips the generation of all .bin files and writes all output into the .rc file. This encoding is
parsable with wrc(1).
-o file
Output to file. Default is inputfile.rc.
-u Assume that the inputfile is in unicode.
-U Write resource output in unicode formatted messagetable(s).
-v Show all supported codepages and languages.
-V Print version end exit.
-W Enable pedantic warnings.
EXTENSIONS
The original syntax is extended to support codepages more smoothly. Normally, codepages are based on the DOS-codepage from the language
setting. The original syntax only allows the destination codepage to be set. However, this is not enough for non-DOS systems which do not
use unicode source-files.
A new keyword Codepages is introduced to set both input and output codepages to anything one wants for each language. The syntax is similar
to the other constructs:
Codepages '=' '(' language '=' cpin ':' cpout ... ')'
The language is the numerical language-ID or the alias set with LanguageNames. The input-codepage cpin and output-codepage cpout are the
numerical codepage-IDs. There can be multiple mapping within the definition and the definition may occur more than once.
AUTHORS
wmc was written by Bertho A. Stultiens.
BUGS
The message compiler should be able to have multiple inputfiles and combine them into one outputfile. This would enable the splitting of
languages into separate files.
Unicode detection of the input is suboptimal, to say the least. It should recognize byte-order-marks (BOM) and decide what to do.
Decimal output is completely lacking. Don't know whether it should be implemented because it is a, well, non-informative format change. It
is recognized on the commandline for some form of compatibility.
AVAILABILITY
wmc is part of the wine distribution, which is available through WineHQ, the wine development headquarters, at http://www.winehq.org/.
SEE ALSO wine(1), wrc(1)Wine 1.2-rc6 October 2005 WMC(1)