#!/bin/bash nl -v0 -ba|sed -r ':;s/(\S+\s+)(\S+) /\1\2\n\1 /;t;s/^\s*\S+\s*$/& &/'|tsort|tac
1 2 2
2 1 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!