Search Results

Search: Posts Made By: bunny_merah19
2,699
Posted By vgersh99
if you need to "fold" the lines at 60 char width,...
if you need to "fold" the lines at 60 char width, pipe the output to fold:
awk .... | fold -w 60
2,699
Posted By RudiC
Try alsoawk ' NR==FNR {PAT[$1,$2,$3] ...
Try alsoawk '
NR==FNR {PAT[$1,$2,$3]
next
}
{IX = $1
L1 = length ($1) + 1
$1 = $1 "|"
...
2,699
Posted By vgersh99
a bit verbose, but a possible starter. awk -f ...
a bit verbose, but a possible starter.
awk -f bunny.awk inputfile2.txt inputfile1.fa where bunny.awk is:

function printRec() {
#print a[f], s[f], e[f]
for ( i in s) {
split(i,t,...
6,102
Posted By RudiC
Try awk ' $3 == "transcript" {match...
Try
awk '
$3 == "transcript" {match ($0, /cov[ ".0-9]*;/)
split (substr ($0, RSTART, RLENGTH), T, "\"")
PR = (T[2] > 3)
...
2,694
Posted By RudiC
Well, looks like any tra_law line should reset...
Well, looks like any tra_law line should reset the counters, regardless of the $5 - $4 delta value. Try this small adaption.



awk -F"\t" '
NR > 2 &&
$3 ~ /tra_law/ {if ((CNT > 3)...
2,694
Posted By RudiC
Help me out: what does {NF--NF} do in your second...
Help me out: what does {NF--NF} do in your second awk script do? An uncommon construct, at least to me...

For your problem, how about
awk -F"\t" '
NR > 2 &&
($5-$4) > 200 &&
$3...
6,102
Posted By Chubler_XL
With a slight change it should also work nicely...
With a slight change it should also work nicely for string data values:

$ echo ' wrongkey "some data"; key "more data";' |
awk 'match($0, /[ ;]key +"[^"]*" *-;/)...
6,102
Posted By RudiC
Try (untested)awk -F";" 'match ($0, /cov[...
Try (untested)awk -F";" 'match ($0, /cov[ ".0-9]*;/) {split (substr ($0, RSTART, RLENGTH), T, "\""); if (T[2] <= 3) next} 1' file
1,126
Posted By RudiC
Looks like you want to prefix every double quoted...
Looks like you want to prefix every double quoted string with a space. How far would

sed 's/"[^"]*"/ &/g' file get you, provided the double quotes certainley, reliably appear in pairs?
1,126
Posted By anbu23
$ sed -e 's/[^\t]*id/& \ /g' -e...
$ sed -e 's/[^\t]*id/& \ /g' -e 's/[^\t]*alias_./& \ /g' file
Chr1 lnci exon 83801516 83803251 . - . gene_id "LINC01725"; transcript_id "LINC01725:44"; ...
1,126
Posted By jim mcnamara
Also note that I do not see any difference...
Also note that I do not see any difference between your input and output examples. It is hard to help without an idea of what your tried. It also is extremely helpful for good answers to include...
Showing results 1 to 11 of 11

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