Batch Replace Instructions

2155  find ./ -name "*.jsp" | xargs -i perl -p -i.bak -e 's/\r\n/\n/g' {}

find ./ -name "*.bak" -type f -print -exec rm {} \;

如果不想备份

perl -pie 's/\r\n/\n/g' file

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326339675&siteId=291194637