Skip to content

Instantly share code, notes, and snippets.

@arioch1984
Created July 27, 2023 09:42
Show Gist options
  • Save arioch1984/84063fcf25cfd38273c048b0f47aa4f8 to your computer and use it in GitHub Desktop.
Save arioch1984/84063fcf25cfd38273c048b0f47aa4f8 to your computer and use it in GitHub Desktop.
find /percorso/della/cartella -type f -name "*.txt" -exec sed -i 's/pattern/replacement/g' {} +
# dry run
find /percorso/della/cartella -type f -name "*.txt" -exec sed -n 's/pattern/replacement/g' {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment