Search Results

Search: Posts Made By: luoruicd
1,949
Posted By Yoda
mukulverma2408, your code is good for requester...
mukulverma2408, your code is good for requester with some minor changes:
awk '{ split(FILENAME,A,"."); print A[1],$0; } ' *.phe.ps
1,949
Posted By mukulverma2408
You can try : awk '{ print FILENAME,$0 ;}'...
You can try :

awk '{ print FILENAME,$0 ;}' file1 file2 > tmp.tmp
1,949
Posted By binlib
grep . *.phe.ps |sed 's/\.phe\.ps:/ /'
grep . *.phe.ps |sed 's/\.phe\.ps:/ /'
1,949
Posted By Yoda
printf "%s\n" *.phe.ps | awk -F"." '{ file=$0;...
printf "%s\n" *.phe.ps | awk -F"." '{ file=$0; pre=sprintf("%s",$1); while(( getline line < file ) > 0 ) { print pre,line; } }'
1,971
Posted By Don Cragun
For a reference I would start the awk man page on...
For a reference I would start the awk man page on your system and the awk man pages on this site, and then look at the Wikipedia entry for awk (http://en.wikipedia.org/wiki/AWK); it provides a good...
1,971
Posted By Don Cragun
bipinajith's proposal works as long as all of the...
bipinajith's proposal works as long as all of the allele= and alleles= entries are in the 2nd field in the input lines, and all of the allele= entries come after the alleles= entry, except that it...
1,971
Posted By Yoda
AWK Code: awk -F'|' ' \ /snp/ { ...
AWK Code:
awk -F'|' ' \
/snp/ {
printf "\n%s", $1;
}
/allele/ {
A=$2;
gsub("allele=","",A);
gsub("alleles=","",A);
printf "%s", A;
} END {
printf "\n"...
1,971
Posted By Corona688
awk -F'|' '{for(N=1; N<=NF; N++) if($N ~ /allel/)...
awk -F'|' '{for(N=1; N<=NF; N++) if($N ~ /allel/) print $N }' inputfile
1,870
Posted By itkamaraj
try this.. awk...
try this..


awk '$2!~/(^A$|^T$|^G$|^C$)/{$2=" "}$3!~/(^A$|^T$|^G$|^C$)/{$3=" "}{print}' inputfile


---------- Post updated at 11:29 AM ---------- Previous update was at 11:27 AM ----------...
1,870
Posted By Yoda
Checking column 3 & replacing with " " awk '$3...
Checking column 3 & replacing with " "
awk '$3 !~ /(^A$|^T$|^G$|^C$)/ { $3=" "; print $0 } $3 ~ /(^A$|^T$|^G$|^C$)/ { print $0; } ' infile
Showing results 1 to 10 of 10

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