How to use zcat | head on large file in s3 bucket

368 views Asked by At

Have large fastq.gz files in an s3 bucket and want to look at a few lines and check that their format is correct. Working locally I use zcat <filepath> | head -n 8 which works fine, but on AWS to get the relevant filename I use aws s3 ls s3://bucket_name/filepath/ and get something like 2022-04-01 3244653538 filename.fastq.gz. Attempting to feed this filepath to zcat - with or without the datestamp and keycode - returns No such file or directory. I am an AWS noob and would greatly appreciate your input.

0

There are 0 answers