fork(1) download
  1. BEGIN{
  2. lines="2,3,4,5"
  3. num=split(lines,array,",")
  4. for(i=1;i<=num;i++){
  5. linechange[array[i]]
  6. }
  7. }
  8. FNR in linechange{
  9. $0="#" $0
  10. }
  11. 1;
Success #stdin #stdout 0s 4264KB
stdin
A
B
C
D
E
F
G
H
stdout
A
#B
#C
#D
#E
F
G
H