:1,$!awk '{ print $1 }
ou prendre en input chaque ligne et l’intégrer dans une commande :
:%!awk '{ system("host "$1)}'
- ex : to delete disks not belonging to rootvg :
lspv | grep -v rootvg|awk '{ print "rmdev -dl "$1 }'| ksh
Very useful to treat multiple lines commands in one line .... instead of the usual for i in ....