v.clip.by.maps is a GRASS GIS script. It cuts from the input area parts that are "neighbours" of the centroids of the user defined maps