Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
cat hg18.fa | awk '{
if (substr($0, 1, 1)==">") {filename=(substr($0,2) ".fa")}
print $0 > filename

This comment has been minimized.

Copy link

@Joytee Joytee commented Jul 19, 2021

thanks, it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment