Skip to content
Snippets Groups Projects
Verified Commit f089ea6b authored by Laurent Modolo's avatar Laurent Modolo
Browse files

flexi_splitter: fix awk cmd

parent ef62cf28
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ process split_file {
tuple val(config_id), path(config)
output:
tuple val(file_id), path("split/*/*"), emit: fastq
tuple val(file_id), path("results/*"), emit: fastq
script:
if (file_id instanceof List){
......@@ -50,7 +50,7 @@ process split_file {
mkdir -p results/
find split -type "f" | \
sed -E "s|(.*/split/(.*)/(.*))|\1 \2_\3|g" |
awk '{"mv "\$1" results/"\$2}'
awk '{system("mv "\$1" results/"\$2)}'
rm -Rf split
"""
else
......@@ -60,7 +60,7 @@ process split_file {
mkdir -p results/
find split -type "f" | \
sed -E "s|(.*/split/(.*)/(.*))|\1 \2_\3|g" |
awk '{"mv "\$1" results/"\$2}'
awk '{system("mv "\$1" results/"\$2)}'
rm -Rf split
"""
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment