Increment ABC-123 by 1!!

in a shell script, i hav a variable declared as "ABC-123".
i want to incriment th value ABC-123 by 1 so that the result will be
ABC-124.
Can anyone suggest a solution in shell scripting..

# v=ABC-123
# IFS=-
# set -- $v
# echo $(( $2+1 ))
124
# echo "$1-$(( $2+1 ))"
ABC-124

Then why not post in the the correct forums "Shell Programming and Scripting"

Mr Shamrock,i think its in Shell Programming and Scripting fourms only.

below perl can add 1 to all those number inside certain string. Hope can help you some.

while(<DATA>){
	s/([0-9]+)/$1+1/eg;
	print;
}
__DATA__
ABC-123
EFG-234
ABC-123-BCD
123ABC34