fork download
  1. #!/bin/bash
  2. TARGET=MOTOR; sed -n '/TARGET/{x;/1/{s/1/2/;x;b print};s/.*/1/;x;};/^$/h;H;b;:print;g;1!{/^$/q};p'
Success #stdin #stdout 0.01s 5292KB
stdin
[SITE1]
NY
SF

[MOTOR]
electric
coal

[AREA]
west
east
north

[CLEAR]
stdout
Standard output is empty