grep -rli '192.168.1' * | xargs -i@ sed -i 's/192.168.1/192.168.2/g' @
참고
https://stackoverflow.com/questions/11392478/how-to-replace-a-string-in-multiple-files-in-linux-command-line
grep -rli '192.168.1' * | xargs -i@ sed -i 's/192.168.1/192.168.2/g' @
참고
https://stackoverflow.com/questions/11392478/how-to-replace-a-string-in-multiple-files-in-linux-command-line
감사합니다!!!
답글