Search Results

Search: Posts Made By: paolo.kunder
1,940
Posted By RavinderSingh13
Hello Paolo, Could you please try following...
Hello Paolo,

Could you please try following and let me know if this helps you.

awk 'BEGIN{for(i=1;i<=ARGC;i++){O=O?O OFS ARGV[i]:ARGV[i]};print O} FNR==NR{A[$1]=$0;next} ($1 in A){print A[$1]...
1,940
Posted By RudiC
just add them at the end (file[12] expands to...
just add them at the end (file[12] expands to file1 file2). Why don't you try *UCSC* or mayhap a subset of those.
2,575
Posted By protocomm
try awk 'NR==FNR{a[$0]++;next}{if ($0 in...
try

awk 'NR==FNR{a[$0]++;next}{if ($0 in a){print $0,a[$0]} else {print $0,0}}' file B file A
2,575
Posted By Akshay Hegde
$ awk 'FNR==NR{ A[$1]++; next}{ print $1 ,...
$ awk 'FNR==NR{ A[$1]++; next}{ print $1 , A[$1]+0 }' fileB fileA
1,668
Posted By pravin27
Could this help you ? awk '{ print >...
Could this help you ?
awk '{ print > int($2/1000)+1"_distance.txt"}' filename
706
Posted By bartus11
Try:awk 'NR==FNR{a[$1]=$2;next}$1 in a{$0=$0" -...
Try:awk 'NR==FNR{a[$1]=$2;next}$1 in a{$0=$0" - "a[$1]" = "($2-a[$1])}1' FileB FileA
706
Posted By balajesuri
Not in the exact format, but does the job: join...
Not in the exact format, but does the job:
join -a1 fileA fileB | awk '{if($3 != ""){print $0, $2-$3}else{print}}'
1,993
Posted By disedorgue
Hello, with grep: grep -v...
Hello,

with grep:
grep -v '^[^[:space:]]*\([[:space:]]*0\)*$' file

Regards.
938
Posted By pravin27
Try this, awk...
Try this,
awk '/^chrom/{split($1,a,"=");split($2,b,"=");next} { printf "%s\t%10d\t%10d\t%f\n",a[2],b[2],b[2]+1,$1;b[2]++}' filename
2,752
Posted By Corona688
awk 'NR==1 { print ; T=$1; next } $1=="" { print...
awk 'NR==1 { print ; T=$1; next } $1=="" { print ; getline ; print ; T=$1 ; next } { $(NF+1)=T } 1' inputfile
Showing results 1 to 10 of 10

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