main.sh 214 B

123456789101112131415
  1. #!/bin/bash
  2. if grep -RIZ "123" target | xargs -0 cp -t .; then
  3. echo "cp - ОК"
  4. else
  5. echo "cp - FAILS"
  6. fi
  7. if grep -RLZ "123" target | xargs -0 rm; then
  8. echo "rm - ОК"
  9. else
  10. echo "rm - FAILS"
  11. fi