#!/bin/bash ## usage: bash cleanup-Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace.sh vi ## usage: bash cleanup-Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace.sh joe [ -n "$1" ] && EDITOR="$1" if [ -z "$EDITOR" ]; then echo "Please provide parameter 1 (editor). Example: vi, joe" exit 1 fi function edit_at_line() { local f="$1" local l="$2" $EDITOR +$l "$f" } echo Process cleanup for 'Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace' echo Number of lines: 15 echo Examples: 'Array ( [0] => Opening brace must be the last content on the line ) ' echo Press ENTER to begin read edit_at_line 'CRM/Contact/BAO/Individual.php' 44 edit_at_line 'CRM/Contact/Form/Edit/Demographics.php' 78 edit_at_line 'CRM/Contact/Form/Merge.php' 260 edit_at_line 'CRM/Contact/Form/Search/Builder.php' 299 edit_at_line 'CRM/Contact/Form/Task/HookSample.php' 91 edit_at_line 'CRM/Contact/Form/Task/Map.php' 139 edit_at_line 'CRM/Contribute/Form/AbstractEditPayment.php' 260 edit_at_line 'CRM/Contribute/Form/AbstractEditPayment.php' 443 edit_at_line 'CRM/Contribute/Import/Parser/Contribution.php' 608 edit_at_line 'CRM/Core/JobManager.php' 101 edit_at_line 'CRM/Event/Form/Registration/ThankYou.php' 244 edit_at_line 'CRM/Event/Form/Search.php' 358 edit_at_line 'CRM/Event/Import/Parser/Participant.php' 509 edit_at_line 'CRM/Logging/ReportDetail.php' 117 edit_at_line 'CRM/Mailing/Selector/Event.php' 438