I want to awk/sed only prefix of name of files, whenever I put a filename as a parameter to my command line.

For example,

I have multiple files:

```
a.fastq.gz
b.fastq.gz
c.fastq.gz
d.fastq.gz

```

If I execute:

```
sh test.sh --INFILE b.fastq.gz

```

My desired output would be:

```
b

```

Something I tried and failed was,

```
prefix="sed 's/.fastq//' ${INFILE}"

```