Skip to content

Instantly share code, notes, and snippets.

@lynnlangit
Created March 1, 2021 14:30
Show Gist options
  • Save lynnlangit/c1ed2a3535b3ae6711dd14687d5174c3 to your computer and use it in GitHub Desktop.
Save lynnlangit/c1ed2a3535b3ae6711dd14687d5174c3 to your computer and use it in GitHub Desktop.
#!/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