DEV Community

Discussion on: Share your most embarrassing shell pipeline

Collapse
 
glsolaria profile image
G.L Solaria • Edited

As for me and my embarrassing command lines, I did one recently:

lxc network list | grep bridge | cut -f2 -d"|" | while read ii
do
  lxc delete network $ii
done

I probably should have used

lxc network list | nawk -F"|" '/\|/ && /bridge/ {system("lxc delete network " $2)}'