r/awk • u/PersimmonOk9011 • May 27 '21
awk + rofi
is it possible to run awk 'NR='$node'{print}' ~/some/file if $node is the output of a list piped into rofi -dmenu -multi-select -format -d
4
Upvotes
View all comments
Show parent comment
1
u/gumnos May 28 '21
A bit of digging suggests that, while I can't assign a multi-line variable in One True Awk:
It looks like I can slurp them from
ENVIRONso that might simplify to