fork download
  1. /```/{ found="" }
  2. match($0,/```{bash.*title-of-chunk/){
  3. val=substr($0,RSTART,RLENGTH)
  4. sub(/.*title/,"title",val)
  5. print "#"val
  6. val=""
  7. found=1
  8. next
  9. }
  10. found
Success #stdin #stdout 0s 4364KB
stdin
```{bash, title-of-chunk, other=TRUE, options=FALSE}
# here's some bash code
blah_blah="blah"
```
stdout
#title-of-chunk
# here's some bash code
blah_blah="blah"