Search Results

Search: Posts Made By: Mauve
4,424
Posted By RavinderSingh13
Hello, Following may help you. awk...
Hello,

Following may help you.


awk 'NR==FNR{a[$2]=$0;next} ($0 in a){print a[$0]}' fileB fileA


Ouptut will be as follows.


NODE_0 fig|562.2322.peg.1 peg
NODE_0 ...
20,760
Posted By Yoda
for file in /source_dir/*.fasta do ...
for file in /source_dir/*.fasta
do
fname="${file##*/}"
awk '/>/{sub(">","&"FILENAME"_");sub(/\.fasta/,x)}1' "$file" > /dest_dir/$fname"
done
20,760
Posted By Yoda
awk...
awk '/>/{sub(">","&"FILENAME"_");sub(/\.fasta/,x)}1' sample_1.fasta
Showing results 1 to 3 of 3

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