Skip to content

Instantly share code, notes, and snippets.

@satta
Created January 6, 2016 09:56
Show Gist options
  • Save satta/0726c1f5088c713d320a to your computer and use it in GitHub Desktop.
Save satta/0726c1f5088c713d320a to your computer and use it in GitHub Desktop.
Test workflow for single quote problem
process test {
output:
file '*.out' into outfiles
"""
touch "test'file.out"
touch testfile2.out
"""
}
process next {
input:
file '*.out' from outfiles
output:
file '*.out2' into final_outfiles
"""
for fn in *.out; do mv \$fn `basename \$fn .out`.out2; done
"""
}
final_outfiles.subscribe {
println it
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment