Let us say you have a gtf file downloaded from UCSC or any other source and you would like to split the gtf file by chromosome. Assuming that first column is represented by chromosome and name for each chromosome is chr1, chr2, chr3 and so on so forth. Let us do this in awk and parallel. 

In awk:

$ awk '{print >$1".bed"}'

In parallel:
$ (seq 22);echo -e "x\ny"| parallel "grep -w chr{} test.bed > chr{}.bed"

Awk output will have same name as chromosome in first column. Parallel output will have chromosome and number in file names.