perl -ne 'if (/SEQUENCE\s+(\S+)/) {open FILE, ">", $1 or die; select F +ILE} next if /^(REMARK|EXPDTA|HEADER2)/; print' your-data-file
In reply to Re: Create multiple files from a single file
by JavaFan
in thread Create multiple files from a single file
by PerlAmateur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |