Created
March 1, 2021 14:30
-
-
Save lynnlangit/c1ed2a3535b3ae6711dd14687d5174c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nextflow | |
params.str = 'Hello world!' | |
process splitLetters { | |
output: | |
file 'chunk_*' into letters | |
""" | |
printf '${params.str}' | split -b 6 - chunk_ | |
""" | |
} | |
process convertToUpper { | |
input: | |
file x from letters.flatten() | |
output: | |
stdout result | |
""" | |
cat $x | tr '[a-z]' '[A-Z]' | |
""" | |
} | |
result.view { it.trim() } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment