I was trying zcat to get only the first 1M lines of a compressed .gzip file into a new one.
However, I get the following error:
$ zcat path/to/R2.fq.gz | head -100 >R2.fqtest head: write error: Input/output error
I was relieved when I found this thread and tried:
$ gunzip -c path/to/R2.fq.gz | head -n100 >R2_test.fq
But I get the same error again!
head: write error: Input/output error
Anyone know what might be going on and how to fix it?
As requested, I typed the following after getting the error
tail: cannot open `/var/log/syslog' for reading: No such file or directory