Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- from=(
- FeeHelper
- InvoiceCorrection
- InvoiceReverser
- InvoiceOpener
- LineItemReverser
- TaxHelper
- VatHelper
- LineItemGenerator
- InvoiceFinalizer
- )
- to=(
- FeeService
- InvoiceCorrectionService
- InvoiceReverserService
- InvoiceOpenService
- LineItemReverserService
- TaxService
- VatService
- LineItemGenerationService
- InvoiceFinalizerService
- )
- for index in ${!from[*]}; do
- git grep "${from[$index]}" | cut -d':' -f1 | uniq | xargs sed -i "" "s/${from[$index]}/${to[$index]}/g";
- done
Add Comment
Please, Sign In to add comment