Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: zajtat
2,415
Posted By zajtat
Thank you all for your comments and suggestions....
Thank you all for your comments and suggestions. I do understand that the solution to any problem is proper communication and my point was that since we are communicating in writing only, even with...
2,415
Posted By zajtat
To solve this issue of mine, I've done something...
To solve this issue of mine, I've done something not very elegant: I've written 5.427 commands with all the files to merge and just made an executable file with all the commands copy pasted there....
2,415
Posted By zajtat
I was going through the post again to look over...
I was going through the post again to look over things and have double-checked that the perl script works fine with files that have numbers as names. There are no bugs in perl script and there has...
2,415
Posted By zajtat
Thank you all for your suggestions and...
Thank you all for your suggestions and explanations!
2,415
Posted By zajtat
Hi Bakunin and thank you for your...
Hi Bakunin and thank you for your suggestion/explanation.

I've changed the first line to

#! /bin/bash

Unfortunately, I'm getting the same error that there is no file specified as argument2....
2,415
Posted By zajtat
Hi, I did not alter your script, just copy...
Hi,

I did not alter your script, just copy pasted it into a shell and run it. When the shell produced an error of /bin/ksh: bad interpreter: No such file or directory, I deleted the first line of...
2,415
Posted By zajtat
Hi and thank you for your solution. I will test...
Hi and thank you for your solution.
I will test it out tomorrow on my files.

Many thanks for your kind help!

---------- Post updated at 12:53 AM ---------- Previous update was at 12:33 AM...
2,415
Posted By zajtat
I'm sorry my explanations were not clear. ...
I'm sorry my explanations were not clear.

The executable command takes the columns of file specified in argument 1 (infile1) and adds them to the file specified in argument 2 (infile2). It creates...
2,415
Posted By zajtat
Hi, The syntax for the combining.executable...
Hi,

The syntax for the combining.executable is correct and it would not put the data from infile3 in front of the infile2 in outfile2. The excitable will add columns from infile3 to the end of...
2,415
Posted By zajtat
Each of the files consisted of 7 columns: the...
Each of the files consisted of 7 columns: the first three columns are the same in each file and the other 4 columns are the actual data (but we need to use only the last three of those). The merging...
2,415
Posted By zajtat
Looping through input/output
Hi,

I've got a directory of about 6000 txt files that look like this:

a b c d
e f g h
k l m n

I need to execute a command on them to combine them and, in the end, have one big file with...
734
Posted By zajtat
Looping and sed
Hi,

I've got text files (say file1 and file2) in a directory (say directory1) with several columns like this:

a b c d
a b c de f g h
e f g hI need to add a header to the files in directory1...
958
Posted By zajtat
I see it seems that I've just used the wrong...
I see
it seems that I've just used the wrong symbol, so simple! as usual :-)
Many thanks!
958
Posted By zajtat
Error in looping through files
Hi,

I've got a folder with several files I'd like to manipulate. The file names are all ending in .txt and I'd like to loop through their names for manipulation. This is the script I've got so...
967
Posted By zajtat
Select lines based on character length
Great solutions! (so simple, as usual!)
Many thanks!
967
Posted By zajtat
Select lines based on character length
Hi,

I've got a file like this:

22 22:35645163:T:<CN0>:0 0 35645163 T <CN0>
22 rs140738445:20902439:TTTTTTTG:T 0 20902439 T TTTTTTTG
22 rs149602065:40537763:TTTTTTG:T 0 40537763 T TTTTTTG...
833
Posted By zajtat
Thank you guys! It works!
Thank you guys!
It works!
833
Posted By zajtat
I'm not sure what you mean. Do you suggest to...
I'm not sure what you mean. Do you suggest to write out $3 to $8 instead of the loop?
The thing is that this is an example. In reality, the file had over 200K columns and I need the loop (or...
833
Posted By zajtat
Column manipulation
Hi,

I's like to ask for help with the following question:

this is an example file:

1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10


I need to have...
904
Posted By zajtat
my apologies to RudiC for not including all the...
my apologies to RudiC for not including all the details in my description/codes

many thanks to SriniShoo for the additional code, it worked well
904
Posted By zajtat
Thank you for the code. It is quite ambitious...
Thank you for the code.
It is quite ambitious indeed, but I need 1 million columns (it is for the genetic analysis).
I've just run your script and it took about 1 min to finish.
The output,...
904
Posted By zajtat
Add 1 million columns
Hi,

here is my problem:

I've got a file with 6 columns (file1):

a b c d e f
a b c d e f
a b c d e f
a b c d e f

I need to add 1 million columns to this file, each column needs to be a...
1,048
Posted By zajtat
Thank you all for your help! The files can be...
Thank you all for your help! The files can be sorted.

The solution posted by Scrutinizer works perfectly! and it only takes a few minutes! Many thanks!
1,048
Posted By zajtat
here is a sample of file1: CHR SNP ...
here is a sample of file1:

CHR SNP BP A1 A2 FRQ INFO OR SE P
22 rs7 24000036 T C 0.0080 1.1135 NA NA NA
22 rs78 ...
1,048
Posted By zajtat
Help with grep
Hi guys,

I would like to ask for some help with grep or anything else that could do the trick :-)

Here's what I've got:

file1: a file with about 10 million lines and 10 columns

out of...
Showing results 1 to 25 of 101

 

Featured Tech Videos

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