This question was discussed a bit in this Topic recently:
There was a missing bit of advice in that thread, i.e., using a feature table to filter the sequences. Consulting the tutorials mentioned in the Topic I linked to above may be enough to get you where you need to go, but don't hesitate to follow up if you run into any issues.
So, yes that post is the same topic but I don't think the questions was answered. If I have 42 samples in a fastq file, I would like to split those into corresponding 42 files. The qiime2 tools doesn't appear to do that. The output on your example is only one file.
Can you confirm what kind of data you're working with? Do you have a multiplexed FASTQ file? I.e., do you need to submit sequences with or without quality?
In your original question, you referenced FASTA files. In your follow up, you referenced FASTQ files. In QIIME 2, FASTA files typically represent FeatureData[Sequence], while FASTQ represent SampleData[SequencesWithQuality] . Forgive me if this is familiar territory, but I just want to make sure we're on the same page so I can be helpful.