Search Results

Search: Posts Made By: sogi
3,837
Posted By sogi
Yes, I have considered that. I'm trying to...
Yes, I have considered that. I'm trying to figure out how to upload large files into sql. I was desperate that is why I tried your code and the other codes suggested here. But, yes the performance...
3,837
Posted By sogi
jsmithstl; Thank you for all your help. I...
jsmithstl;

Thank you for all your help. I tried your code, it seems to work. It has been running for more than 10 hours already. However, the columns are not preserved like this.

23 tab...
3,837
Posted By sogi
I had made a mistake. Now your code is...
I had made a mistake.

Now your code is running, BUT the output is just the column numbers for file2 repeated thousands of times (probably 1411 times) It does not fetch the information underneath...
3,837
Posted By sogi
This much memory: 31284140 But, I tried...
This much memory:

31284140

But, I tried running that code and gave me this: Out of memory!
3,837
Posted By sogi
jsmithstl; #!/usr/bin/perl use strict; ...
jsmithstl;

#!/usr/bin/perl

use strict;

my @a_column;
my $outline;
my $line;
my $key;

open COLFILE, "<column.lst"
or die "can't open file: $!";

while(<COLFILE>)
{
chomp($_);...
3,837
Posted By sogi
Extracting 482/300k columns no's with respective info. listed in file2 from file1
Hi,

I have 2 files

File 1:


1 2 3 4 5 6 .......etc until column 300K
1 23 21 24 12 22
1 23 21 24 12 22
1 23 21 24 12 22
1 23 21 24 12 22
1 23 21 24 12 22
1 23 21 24 12 22
1 23 21 24...
Forum: Ubuntu 11-25-2009
2,449
Posted By sogi
thegeek; It works. Thank you. Now, I'm...
thegeek;

It works. Thank you. Now, I'm trying to use grep to fetch only the columns from file 1 (now that has a column no. header) with the column numbers listed in file2:


file="file2"
while...
Forum: Ubuntu 11-25-2009
2,449
Posted By sogi
Inserting a header with column number to a 1.6 GB file with special spacing
Hi;

I've been searching posts to find a solution to what I'm trying to do, but I've have NOT found anything yet.

I have a file (file1) with 300K columns and 1411 rows, the columns don't have a...
Forum: Linux 09-28-2009
7,638
Posted By sogi
mark54g and apsprabhu; You were very...
mark54g and apsprabhu;

You were very helpful. THANK YOU!. This code works:

file="file1.txt"
while read line
do
grep $line file2 >> file3
done < $file
Forum: Linux 09-27-2009
7,638
Posted By sogi
mark54g: Could it be that grep is limited to...
mark54g:
Could it be that grep is limited to certain line numbers. When I had close to 1/2 million columns I did not have a problem. BUT, now that I have that many rows, grep does not seem to...
Forum: Linux 09-25-2009
7,638
Posted By sogi
thegeek...
thegeek (https://www.unix.com/members/302060163.html);

Thank you for trying to help me, but grep -f file1 file2 > file3
DOES NOT WORK.


---------- Post updated 09-25-09 at 03:56 PM ----------...
Forum: Linux 09-23-2009
7,638
Posted By sogi
-F does not work only either.
-F does not work only either.
Forum: Linux 09-23-2009
7,638
Posted By sogi
how to grep special character regular expression?
Hi :)

I have 2 files

file1:

SNP_A-2208459
SNP_A-4215188
SNP_A-2012248
SNP_A-1882998


file2:

CHR SNP UNADJ BONF HOLM * * * etc.
19 ...
Forum: Ubuntu 07-01-2009
4,579
Posted By sogi
I already tried that grep code and did not work...
I already tried that grep code and did not work either. I don't know if it is because of the file extension of file2.ped (ped is text file that can handle millions of columns)

---------- Post...
Forum: Ubuntu 06-30-2009
4,579
Posted By sogi
filtering out data using grep
Both files have no headings

input of file1.txt (has one 1 column, as shown below):

MXY2344
MXY2455
.
.
.
.
.
.
.
MXY9150 <--- row #364



input of file2.ped (this file has more...
Forum: Ubuntu 06-30-2009
4,579
Posted By sogi
Both files have no headings input of file 1...
Both files have no headings

input of file 1 (has one 1 column, as shown below):

MXY2344
MXY2455
.
.
.
.
.
.
.
MXY9150 <--- row #364



input of file 2 (this file has 2,498,588...
Forum: Ubuntu 06-30-2009
4,579
Posted By sogi
I used this: grep -A1 -A1 -f file1.txt file2...
I used this:

grep -A1 -A1 -f file1.txt file2 > file3

but it is taking forever and I don't know if it is going to be correct at the end
I don't know what -A1 -A1 mean (I'm assuming that is col1...
Forum: Ubuntu 06-30-2009
4,579
Posted By sogi
Match col 1 of File 1 with col 1 File 2 and create a 3rd file
Hello,

I have a 1.6 GB file that I would like to modify by matching some ids in col1 with the ids in col 1 of file2.txt and save the results into a 3rd file.

For example:

File 1 has 1411...
3,664
Posted By sogi
Inserting a column from one file into another big file
Hi

I have two files, one is 1.6 GB. I would like to add one extra column of information to the large file at a specific location (after its 2nd column).

For example:

File 1 has two columns...
3,796
Posted By sogi
Concatenate two files after a specific column
Hi

I have two files, one is 1.6 GB. I would like to add one extra column of information to the large file at a specific location. After its 2nd column.

For example:

File 1 has two columns...
9,218
Posted By sogi
How to concatenate two files at a specific column
Hi

I have two files, one is 1.6 GB, I would like to add one extra column of information to the large file at a specific location. After the 3rd column.

For example:

File 1 has two columns...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 10:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy