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?
thanks! Carmen
Edit >
As requested, I typed the following after getting the error
tail /var/log/syslog
and got
tail: cannot open `/var/log/syslog' for reading: No such file or directory
tail /var/log/syslog
and edit the result into your question.tail: cannot open '/var/log/syslog' for reading: No such file or directory