I split a gz file using gunzip
piped to split
:
time gunzip -c file.gz | split -l 500 -d -a 4 - pref_
Which generates the following files:
pref_0000
pref_0001
I'd like to pipe those files to zip them again. I tried the following:
gunzip -c file.gz | split -l 500 -d -a 4 - pref_ | echo "file produced:" -
# Nothing
gunzip -c file.gz | split -l 500 -d -a 4 - pref_ | echo -
gunzip -c file.gz | split -l 500 -d -a 4 - pref_ | echo
Those do not work, how can I get an output from the split command? I expect to get the produced file names.