Question: I've a 100GB file and I want to split into 100 of 1GB file each (by line break)

e.g.

```
split --bytes=1024M /path/to/input /path/to/output

```

For the 100 files generated, I want to apply gzip/zip to each of these files.

Is it possible to use a single command?

Answer: 
Use "--filter":

`split --bytes=1024M --filter='gzip > $FILE.gz' /path/to/input /path/to/output`
Using this command with `-d` option allows you to generate numeric sufixes.

```
split -d -b 2048m "myDump.dmp" "myDump.dmp.part-" && gzip myDump.dmp.part*

```

Files generated:

```
    myDump.dmp.part-00
    myDump.dmp.part-01
    myDump.dmp.part-02
    ...

```