Thank you for your quick response but I am getting the following error
bash: syntax error near unexpected token `;'
• 0 views
•
link
Hi
I want to use the following command on multiple .faa files (around 1000 each starting with different name). Kindly help.
sed '/^>/ s/ .*//' 182965_iorA.faa > result/182965_iorA.faa
Best wishes
if you want to treat all the .faa files of your directory you just do :
for i in *.faa ;
do
sed '/^>/ s/ .*//' $i > result/$i ;
done
Log in to answer this question.
Thank you for your quick response but I am getting the following error
bash: syntax error near unexpected token `;'
sorry :
for i in *.faa ; do sed '/^>/ s/ .*//' $i > result/$i ; done