웹마짱구의 블로그

linux find & replace

Linux2020. 7. 31. 14:27

https://linuxize.com/post/how-to-use-sed-to-find-and-replace-string-in-files/

 

sed -i 's/SEARCH_REGEX/REPLACEMENT/g' INPUTFILE

 

 

sed -i 's/Date(2013, 1, 1)/Date(2020, 1, 1)/g' *.php
sed -i 's/Date(2020, 6, 25)/Date(2025, 12, 31)/g' *.php

Comment +0