Skip to content

Instantly share code, notes, and snippets.

@rlopc
Last active February 22, 2016 13:32
Show Gist options
  • Save rlopc/fef8aacc7e6c7d171739 to your computer and use it in GitHub Desktop.
Save rlopc/fef8aacc7e6c7d171739 to your computer and use it in GitHub Desktop.
reemplazar el patrón "\\n" en varios ficheros con el comando 'sed' y guardar copia de los originales con extensión ".orig"
find ./*.csv -type f -exec sed -i .orig -e ':a' -e 'N' -e '$!ba' -e 's/\\\n//g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment