5 /^\.text/,/DATA_SEG_DEFS_HERE/ { print }\
10 'BEGIN { i = 0; last = "hello" }\
11 /BLOCK_STRINGS_BEGIN/,/^\.bss/ { if ( i > 1 ) { print last } last = $0; i = i + 1 }\
17 /DATA_SEG_DEFS_HERE/,/BLOCK_STRINGS_BEGIN/ { print }\
22 cat temp.
awk.1 temp.
awk.2 temp.
awk.3 |
sed -e 's/^\.data//' -e 's/^\.bss//' -e 's/^\.text//' > $1
23 /bin
/rm -f temp.
awk.1 temp.
awk.2 temp.
awk.3 $1.orig