--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/nextflow.
For more options, visit https://groups.google.com/d/optout.
awk 'FNR==1 && NR!=1{next;}{print}' ${fileList} > combined_output.txt
To combine multiple files you can use the collectFile operator though, it would be required some extra coding to remove the header line.I agree that this could be a common use case. I've opened a feature request on GH to add this feature.Cheers,Paolo
On Thu, Mar 16, 2017 at 5:45 AM, Owen S. <owen.s...@gmail.com> wrote:
Say I have several files with headers, like CSV or Tab-sep TXT files, produced by a process.I want to combine them into one file. Like just "cat" them all together, but with the header line appearing just once, at first line of the file.This is a simple thing to do, and I can accomplish okay using sed or awk, but I was thinking there might be a more elegant solution in pure Nextflow. (Especially because it seems like it would be a common task.)ThanksOwen
--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
NXF_VER-0.24.0-SNAPSHOT nextflow info
NXF_VER-0.24.0-SNAPSHOT nextflow run .. etc.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.