#!/bin/bash awk 'BEGIN {pln=0;} \ /start_non_devel/ {pln=1;}\ /stop_non_devel/ {pln=0;}\ /^[^#]/{ if(pln) {printf("%s-devel\n",$0);} }' hpc-patterns.spec \ > devel-inc.txt