Just an example using small regular expression to filter file by chromosome name:
cat Homo_sapiens.GRCh37.68.gtf | egrep "^(17|20)\b" > Homo_sapiens.GRCh37.68.17_20.gtf