[perl] 간단한 파일 편집 파일만 편집 perl -p -i -e 's/^foo/bar/g' file 편집된 파일 내용도 출력도 perl -p -i -e 's/^foo/bar/g' < file