Another option is to use find and then pass it through sed.
find /path/to/files -type f -exec sed -i 's/oldstring/new string/g' {} \;
More Related Contents:
- How to ‘grep’ a continuous stream?
- How to remove the lines which appear on file B from another file A?
- Finding contents of one file in another file
- Using grep and sed to find and replace a string
- Linux shell script to add leading zeros to file names
- How can I search for a multiline pattern in a file?
- Environment variable substitution in sed
- ./configure : /bin/sh^M : bad interpreter [duplicate]
- What does “&” at the end of a linux command mean?
- The ‘eval’ command in Bash and its typical uses
- How to join multiple lines of file names into one with custom delimiter?
- Is there a way to ‘uniq’ by column?
- Linux: copy and create destination dir if it does not exist
- Why is a tilde in a path not expanded in a shell script?
- How to handle more than 10 parameters in shell
- Linux bash: Multiple variable assignment
- Changing default shell in Linux [closed]
- How to run a process with a timeout in Bash? [duplicate]
- Linux Script to check if process is running and act on the result
- Example of using named pipes in Linux shell (Bash)
- Passing variables in remote ssh command
- what does “-sh: executable_path:not found” mean
- How to get file creation date/time in Bash/Debian?
- How to join multiple lines of filenames into one with custom delimiter
- What is the difference between “./somescript.sh” and “. ./somescript.sh”
- Counter increment in Bash loop not working
- Syntax error near unexpected token ‘then’
- Check for IP validity
- Why doesn’t “sort file1 > file1” work?
- How to make “grep” read patterns from a file?