OP Solution: A C map/grep Solution 1 A C map/grep Solution 2 A C