Get multiple strings from a file and replace them in another file with AWK
|
|
Get multiple strings from a file and replace them in another file
Script
awk '
NR==FNR {
old[NR] = $1
gsub(/&/,RS,$2)
new[NR] = $2
next
}
{
for (i=1; i in old; i++) {
gsub(old[i],new[i])
}
gsub(RS,"\\&")
print
}
' string Inputfile >Outfile
Extract Part of a FASTA Sequences with Position by python script HERE
Terminal screenshot
|
Related Posts HOW TO
|
Was This Post Useful? Add This To Del.icio.us Share on Facebook StumbleUpon This Add to Technorati Share on Twitter |
Labels:
HOW TO
Subscribe to:
Post Comments (Atom)


No comments:
Post a Comment
Have Problem ?? Drop a comments here!