Skip to content

Instantly share code, notes, and snippets.

@breskeby
Last active August 3, 2018 23:37
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save breskeby/7858657 to your computer and use it in GitHub Desktop.
Save breskeby/7858657 to your computer and use it in GitHub Desktop.
dos2unix on some text files with gradle
task convertFiles <<{
fileTree("someFolder").matching{ include "**/*.txt"}.each{ aFile ->
exec{
commandLine 'dos2unix'
args aFile.absolutePath
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment