Guest User

Untitled

a guest
Nov 17th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. from=(
  4. FeeHelper
  5. InvoiceCorrection
  6. InvoiceReverser
  7. InvoiceOpener
  8. LineItemReverser
  9. TaxHelper
  10. VatHelper
  11. LineItemGenerator
  12. InvoiceFinalizer
  13. )
  14.  
  15. to=(
  16. FeeService
  17. InvoiceCorrectionService
  18. InvoiceReverserService
  19. InvoiceOpenService
  20. LineItemReverserService
  21. TaxService
  22. VatService
  23. LineItemGenerationService
  24. InvoiceFinalizerService
  25. )
  26.  
  27. for index in ${!from[*]}; do
  28. git grep "${from[$index]}" | cut -d':' -f1 | uniq | xargs sed -i "" "s/${from[$index]}/${to[$index]}/g";
  29. done
Add Comment
Please, Sign In to add comment