My program output is as the following:
# myprogram list
val
val.dev
val.int
val.int.p1
val.int.p2
val.int.p3
val.int.p4
val.int.p5
val.dev.p6
I want to extract from the above output only strings under val.int.
so I want to add something to the command in order to get the following output:
# myprogram list|<something options>
p1
p2
p3
p4
p5
Is it possible to do it with awk
(or someting similar like sed
) in only one call of awk
?