Search Results

Search: Posts Made By: JamesT
5,065
Posted By JamesT
Thanks Raj. After a lot of testing (I know...
Thanks Raj.

After a lot of testing (I know close to nothing about Linux/Unix/awk) I managed to make some modifications to the script:
awk 'BEGIN{i=1}{
x=$1;
y=$5":"$6
...
5,065
Posted By JamesT
I have seen the powerful perl program and would...
I have seen the powerful perl program and would like to learn more.

Also, I would like to add a few more columns to the output file.

From the perl program given earlier:
perl -lane '$c{"$F[4]...
5,065
Posted By JamesT
Ok, I see. That is why it is not working for: ...
Ok, I see. That is why it is not working for:

File1 bb xx xx aab rrt xx
File1 xx xx xx ccd bbt xx
File1 xx xx xx ggt iir xx
File2 xx xx xx ggt iir xx
File2 xx xx xx ccd bbt xx
File3 aa xx xx...
5,065
Posted By JamesT
Ok, but how is this awk command selecting which...
Ok, but how is this awk command selecting which columns to include. From the script I cannot see how columns 4 and 5 are used to compare their values. I am sorry for all the questions, but trying to...
5,065
Posted By JamesT
This is also very interesting as it might be...
This is also very interesting as it might be easier for me to modify. However, when running this it seems to output all columns, counting correctly the and adding the "lane#" to each new line. The...
5,065
Posted By JamesT
Thanks, that did what I wanted. What I did myself...
Thanks, that did what I wanted. What I did myself yesterday before reading your reply was to run:
awk -F "lane" '{print NF-1}' perl_output_file > new_count_filefollowed by:
paste new_count_file...
5,065
Posted By JamesT
Wow! Thanks for the swift reply. I am almost...
Wow! Thanks for the swift reply. I am almost there. However, upon running the perl script I got the following "comma" in the wrong place:

perl -lane '$x{"$F[4] $F[5]"} .= "$F[0],"; END{for(keys...
5,065
Posted By JamesT
Advanced: Sort, count data in column, append file name
Hi. I am not sure the title gives an optimal description of what I want to do. Also, I tried to post this in the "UNIX for Dummies Questions & Answers", but it seems no-one was able to help out.

I...
1,680
Posted By JamesT
How to count specific columns and merge with unique ones?
Hi. I am not sure the title gives an optimal description of what I want to do.

I have several text files that contain data in many columns. All the files are organized the same way, but the data...
Showing results 1 to 9 of 9

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