06-22-2011
Combining three space delimited files by column
I have three space delimited files, how do I combine them by column in Unix? Thanks!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how to remove the first column of a space delimited txt file? there are 12+ columns...
what is the cleanest way? could use awk and print all but the first, but it looks kinda ugly
awk '{print $2" "$3" "$4" "$5" "$6" "$7" "$8" "$9" "$10" "$11" "$12"}' file.txt
whats a better way? (1 Reply)
Discussion started by: ajp7701
1 Replies
2. Shell Programming and Scripting
I have a folder that contains say 50 files in a sequential order:
cdf_1.txt
cdf_2.txt
cdf_3.txt
cdf_3.txt
.
.
.
cdf_50.txt.
I need to merge these files in the same order into a single tab delimited file.
I used the following shell script:
for x in {1..50};
do cat cdf_${x}.txt >>... (3 Replies)
Discussion started by: Lucky Ali
3 Replies
3. UNIX for Dummies Questions & Answers
How do you delete cells from a space delimited text file given row and column number? Letś say the row number is r and the column number is c. Thanks! (5 Replies)
Discussion started by: evelibertine
5 Replies
4. UNIX for Dummies Questions & Answers
So I have three space delimited files. Each have 90 rows and many columns. I want to merge them by columns. I use paste to merge file 1 and file2 or file 3 and it works. But when I try to merge file 2 and file 3 using paste or merge or cat, I cannot merge them by column, instead they are merged by... (11 Replies)
Discussion started by: evelibertine
11 Replies
5. Shell Programming and Scripting
I have a number of result files (the number of files varies) that I need to combine into a new file with new columns for each data line. If one file does not have a result for any row it is set to zero. Is this possible? The ID and Name will always match in a row (first two columns, if it is... (2 Replies)
Discussion started by: fozrun
2 Replies
6. UNIX for Dummies Questions & Answers
I have a space delimited text file with two columns. I would like to add NA to the first column of the text file.
Input:
19625 10.4791768259
19700 10.8146489183
19701 10.9084026759
19702 10.9861346978
19703 10.9304364984
Output:
NA19625 10.4791768259
NA19700 10.8146489183... (1 Reply)
Discussion started by: evelibertine
1 Replies
7. UNIX for Dummies Questions & Answers
I have a space delimited text file. I want to extract rows where the third column has 0 as a value and write those rows into a new space delimited text file. How do I go about doing that? Thanks! (2 Replies)
Discussion started by: evelibertine
2 Replies
8. Shell Programming and Scripting
Hello All,
I have several column files like this
$cat a_b_s1.xls
1wert
2tg
3asd
4asdf
5asdf
$cat c_d_s2.xls
1wert
2tg
3asd
4asdf
5asdf
desired put put
$cat combined.txt
s1 s2 (2 Replies)
Discussion started by: avatar_007
2 Replies
9. Shell Programming and Scripting
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)
Discussion started by: jagdishrout
1 Replies
10. Shell Programming and Scripting
Hi,
I am wanting to create a script that will construct a SQL statement based on a a space delimited string that it read from a config file.
Example of the SQL will be
For example, it will read a string like "AAA BBB CCC" and assign to a variable named IN_STRING.
I then concatenate... (2 Replies)
Discussion started by: newbie_01
2 Replies
LEARN ABOUT SUSE
prj2make
prj2make(prj2make 1.0) prj2make(prj2make 1.0)
NAME
prj2make - Makefile generator from Visual Studio and Sharp Develop solution files.
SYNOPSIS
prj2make options file
DESCRIPTIOn
The prj2make tool will produce Makefiles or NMakefiles from Visual Studio solution files (files ending in .sln or .csproj) or SharpDevelop
combine files (files ending in .cmbx or .prjx).
This tool is commonly used to compile on Unix source code which has been originally developed with Visual Studio or SharpDevelop.
This tool can also be used to convert Visual Studio project files (.sln or .csproj) into Sharp Develop .prjx/.cmbx files, use the
`-csproj2prjx' for this.
By default prj2make will produce Makefiles suitable to be consumed by Unix Make. If your application needs to target nmake, you can use
the option `-isNmake'.
OPTIONS
-c , -isCsc
Use csc instead of mcs on the generated files.
-csproj2prjx
Runs in conversion mode, and turns a csproj/sln into a set of prjx/cmbx files.
-n , -isNmake
Produce makefiles suitable to be used by Nmake.
MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-list for details.
WEB SITE
Visit: http://www.mono-project.com for details
SEE ALSO
mcs(1),mono(1),make(1),mono-config(5)
prj2make(prj2make 1.0)