1: 2: 3: 4: 5: 6: 7: 8: 9:
#!/bin/bash for files in `find /cygdrive/d/MechRepo/workspace -name "*.xml" -type f` do `perl -pi -e 's/7\.2\-SNAPS/9\.5\.0\.200/g' $files` `rm -R -f d:/MechRepo/workspace/*.bak` done
1: 2:
#!/bin/bash find /cygdrive/d/MechRepo/workspace -name "*.xml" -print0 | xargs -0 perl -pi -e 's/7\.2\-SNAPS/9\.5\.0\.200/g'