I have a zipped text file a.zip
I want to read the first 10 lines of it. Is it possible to do that without unzipping the whole file?
I have a zipped text file a.zip
I want to read the first 10 lines of it. Is it possible to do that without unzipping the whole file?
This simple pipe-script works for me:
Here:
zcat a.zip
- unpacks zip-archive and sends its contents to standard output|
pipeszcat
output tohead
inputhead -n 10
- shows first 10 lines from its standard input