1

how to use split command in unix shell with a condition

view story
linux-howto

http://www.unix.com – Hi all, I have a file which I want to split into several files based on a condition. This files has several records. I want one record per file. Each record ends with a //. So, I want to separate files based on this condition. I want split files to be named with the name across the field ID (for example: AACL2_BRAJA in the name give below). Also, I want the main file to be as such. Code: Input   ID  AACL2_BRAJA            Reviewed;        334 AA. AC  Q89GR3; DT  30-NOV-2010, integrated into UniProtKB/Swiss-Prot. (HowTos)