Search Results

Search: Posts Made By: Kanja
1,337
Posted By Kanja
This is exactly what I am looking for. I tried...
This is exactly what I am looking for. I tried awk by doing a for loop through the matrix, but the problem i am having is to get the regular expression incorporated into the script.

----------...
1,337
Posted By Kanja
Parsing a subset of data from a large matrix
I do have a large matrix of the following format and it is tab delimited


ch-ab1-20 ch-bb2-23 ch-ab1-34 ch-ab1-24 er-cc1-45 bv-cc1-78
ch-ab1-20 0 2 ...
1,347
Posted By Kanja
Sorry, I realize my mistake. I need the entire...
Sorry, I realize my mistake. I need the entire characters on column 1 to categorize the data in the output file;


aa123 344-456, 34-67
bb34 34-90,23-100,1-89
d3 0-12
e55 45-678,78-90,56-90
1,347
Posted By Kanja
Thank you all I see that you all assume that...
Thank you all

I see that you all assume that the first column only contains characters. If it had also some numbers along with the character in the first column , how do I modify the awk command?....
1,347
Posted By Kanja
Transposing data based on 1st column
I do have a big tab delimited file of the following format

aa 344 456
aa 34 67
bb 34 90
bb 23 100
bb 1 89
d 0 12
e 45 678
e 78 90
e 56 90
....
....
....


I would like to transpose...
985
Posted By Kanja
Highest value matrix parsing
Hi All

I do have a matrix in the following format


a_2 a_3 s_4 t_6
b 0 0.9 0.004 0
c 0 0 1 0
d 0 0.98 0 0
e 0.0023 0.96 0 0.0034


I have thousands of rows

I would like to...
893
Posted By Kanja
Inserting a row if patterns not followed
Hi all,

I have a file of thousands of lines or rows with 2 columns. It is supposed to follow a certain pattern or blocks of 6 rows based on column 1. Below is an example:

a_1 1
a_1 0.9
a_1 12...
1,324
Posted By Kanja
Merging multiple lines
I do have a text file with multiple lines on it. I want to put the lines of text into a single line where ever there is ";"

for example

ert, ryt, yvig,
fgr;
rtyu, hjk, uio,
hyu,
hjo;
ghj,...
2,825
Posted By Kanja
Data transformation
I do have an input text file of the following format with 1000's of lines

input file:
...
848
Posted By Kanja
Thanks That worked
Thanks That worked
848
Posted By Kanja
Parsing out the entire row
I do have a big text file with the following format with 9 columns tab delimited.
I would like to parse out the entire row if any of the columns 6, 7, 8 and 9 have non-zero numbers.
Following is...
1,235
Posted By Kanja
So I want to have the header space delimited. I...
So I want to have the header space delimited. I tried adding \t and \s in print "" of the above code. but it is giving me an error message. It would be great if I could get some help in this matter
1,235
Posted By Kanja
Thanks. It worked. But the header of the matrix...
Thanks. It worked. But the header of the matrix is not space or tab delimited. Also, the actual file contains more than 2 letters on the second column where as the example file I provided contained...
1,235
Posted By Kanja
Creating a matrix out of a longitudinal data set
Hi
I do have a tab delimited file with 2 columns, which is stratified based on the first column. There are 1000's of values in the file.

Below is an example of the input file


1 AB
1 AC
1...
7,630
Posted By Kanja
Printing every alternate columns in a text file
Hi,

I have a big matrix with 1 million columns and 21 rows, which is a tab delimited file. I would like to print every alternate columns into a new file. For each row, the start column will be...
980
Posted By Kanja
Parsing blocked text
I do have a flat text file that are divided into blocks. Each block is demimited by '='. I would like to parse certain numbers and letters.

This is the format of the file I have. It has thousands...
1,814
Posted By Kanja
There is no constant relationship between the...
There is no constant relationship between the pairs of numbers. In some situations I will have 3 or 4 numbers as arguments. So basically, I might not need a for loop.

Can I have all the pairs of...
1,814
Posted By Kanja
The output I want is only perl script.pl 1...
The output I want is only

perl script.pl 1 1 2
perl script.pl 10 10 12
1,814
Posted By Kanja
the numbers that I am trying to import into the...
the numbers that I am trying to import into the perl script is using @ARGV. So these parameter (i, i and j) are user provided. I don't think there is any problem in the perl script. Just have to get...
1,814
Posted By Kanja
Error in for loop
I was trying to implement a nested for do loop to run a perl script.


for i in 1 10 50
do
for j in 2 12 55

do
perl script.pl "$i" "$i" "$j"
done
done


when I implemented it within a...
1,180
Posted By Kanja
Interval merging
I do have a file (file1) with a specified interval of 500 counts

file1

0 500
500 1000
1000 1500
1500 2000
2000 2500
2500 3000
3000 3500
3500 4000
4000 4500
4500 5000
5000 5500...
1,115
Posted By Kanja
I tried the following in sed sed -e :a -e...
I tried the following in sed

sed -e :a -e '{N; s/\n/ /g; ta}' infile



But it only selects the first column. I am not sure how to extract the file name and print the second column...
1,115
Posted By Kanja
Constructing a Matrix
Hi,

I do have couple of files in a folder. The names of each of the files have a pattern.

ahet_005678.txt
ahet_005898.txt
ahet_007678.txt
ahet_004778.txt
...
...
ahet_002378.txt


...
1,686
Posted By Kanja
Also the first column should have only A17_1T
Also the first column should have only A17_1T
1,686
Posted By Kanja
Thanks Chubler_XL. If the file name,...
Thanks Chubler_XL. If the file name, B_A17_A17_1T.txt has more character, where do I change the code?

for example instead of B_A17_A17_1T.txt if the file name was Bvtr_A17_A17_1T.txt. Please let...
Showing results 1 to 25 of 44

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