/ Published in: Bash
Expand |
Embed | Plain Text
sed -i 's#old#new#gi' **/*.suffix
Comments
Subscribe to comments
You need to login to post a comment.
sebastian_bergmann on 01/23/08
2 people have marked this snippet as a favorite
sed -i 's#old#new#gi' **/*.suffix
Subscribe to comments
You need to login to post a comment.
Short: find . -iname ".suffix" -exec sed -i -e 's#old#new#gi' {} \; Even shorter (ZSH): sed -i -e 's#old#new#gi' */*.suffix
That's ** (two asterisks), I don't get the format of this comment thing here.