>>165
$ awk -F/ '{print $NF,$0}' foo.txt | sort -n | cut -d" " -f2-
ccc.com/sub/sub/1
bbb.com/sub/2
aaa.com/3

区切り決められて列順序を弄れるawkパイセン便利よ