Search Results

Search: Posts Made By: epi8
2,950
Posted By epi8
executing code on files in the sorted order -help!
Say i have 2 files in the giving format:
file1
1 2 3 4
1 2 3 4
1 2 3 4

file2
1 2 3 4
1 2 3 4
1 2 3 4

I have a PERL code (loaned by one of u -i forgot who - thanks!) that extracts the...
4,670
Posted By epi8
Thanks -this works! how can I modify it so that...
Thanks -this works! how can I modify it so that it prints to file rather than the screen?

thanks again
4,670
Posted By epi8
#!/bin/bash for file in...
#!/bin/bash
for file in /home/epi/tmurray/reich_stuff/21
do cut -d' ' -f2 *.21 >> out.txt ; done

The above loop does the extraction but appends the column from each file vertically. How can I...
4,670
Posted By epi8
mutliple files in the same directory
I have over 900 files that have the same name except for a unique numeric assignment. For all files I would like to cut the 2nd column and paste all into one new file. All in bash.
sample input...
3,620
Posted By epi8
process mutliple files in the same directory
I have over 900 files that have the same name except for a unique numeric assignment. For all files I would like to cut the 2nd column and paste all into one new file. All in bash.
sample input...
7,072
Posted By epi8
doesn't work. example format of file: ...
doesn't work.

example format of file:

id a1 a2
1 A B
2 A B
3
4 A B


Even the following perl code only replaces some of the blanks with 0.

#!/usr/local/bin/perl
open...
7,072
Posted By epi8
Perl: Global Search and replace
I have a file where the rows correspond to individuals and the columns are about 106 variables. Each variable is coded as either ACGT, and "missing" is coded as blank. This is a tab delimited file....
Showing results 1 to 7 of 7

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