Skip to content

Instantly share code, notes, and snippets.

Created March 7, 2013 16:15
Show Gist options
  • Save anonymous/b670d337896c0ac75a25 to your computer and use it in GitHub Desktop.
Save anonymous/b670d337896c0ac75a25 to your computer and use it in GitHub Desktop.
list = ["total 0",
"lr-x------ 1 mike mike 64 Mar 6 20:32 0 -> /dev/null",
"l-wx------ 1 mike mike 64 Mar 6 20:32 1 -> /dev/null",
"lrwx------ 1 mike mike 64 Mar 6 20:32 10 -> pipe:[4709754]",
"lrwx------ 1 mike mike 64 Mar 6 20:32 11 -> pipe:[4709754]",
"lrwx------ 1 mike mike 64 Mar 6 20:32 12 -> socket:[4709287]",
"lrwx------ 1 mike mike 64 Mar 6 20:32 13 -> socket:[4709288]",
"lr-x------ 1 mike mike 64 Mar 6 20:32 14 -> anon_inode:[eventfd]",
"l-wx------ 1 mike mike 64 Mar 6 20:32 15 -> socket:[4709764]",
"lrwx------ 1 mike mike 64 Mar 6 20:32 16 -> socket:[4709296]",
"lrwx------ 1 mike mike 64 Mar 6 20:32 17 -> anon_inode:[eventfd]",
"lrwx------ 1 mike mike 64 Mar 6 20:32 18 -> anon_inode:[eventfd]",
"lr-x------ 1 mike mike 64 Mar 6 20:32 19 -> /dev/urandom",
"l-wx------ 1 mike mike 64 Mar 6 20:32 2 -> /home/mike/.xsession-errors",
"l-wx------ 1 mike mike 64 Mar 6 20:32 20 -> socket:[13308428]",
"lr-x------ 1 mike mike 64 Mar 6 20:32 21 -> socket:[13308431]",
"lr-x------ 1 mike mike 64 Mar 6 20:32 22 -> /home/mike/.mozilla/firefox/2f6qi4k5.default/cert8.db",
"l-wx------ 1 mike mike 64 Mar 6 20:32 23 -> /home/mike/.mozilla/firefox/2f6qi4k5.default/key3.db",
"lrwx------ 1 mike mike 64 Mar 6 20:32 24 -> socket:[13391039]",
"lrwx------ 1 mike mike 64 Mar 6 20:32 25 -> socket:[13390097]",
"lr-x------ 1 mike mike 64 Mar 6 20:32 26 -> /tmp/FlashXXe6D13a (deleted)",
"l-wx------ 1 mike mike 64 Mar 6 20:32 27 -> pipe:[13402344]",
"lr-x------ 1 mike mike 64 Mar 6 20:32 28 -> pipe:[13402344]",
"lr-x------ 1 mike mike 64 Mar 6 20:32 29 -> pipe:[13402345]",
"lrwx------ 1 mike mike 64 Mar 6 20:32 3 -> socket:[4709521]",
"lr-x------ 1 mike mike 64 Mar 6 20:32 30 -> pipe:[13402345]",
"lr-x------ 1 mike mike 64 Mar 6 20:32 31 -> socket:[13402349]",
"lr-x------ 1 mike mike 64 Mar 6 20:32 32 -> socket:[13551308]",
"lr-x------ 1 mike mike 64 Mar 6 20:32 33 -> socket:[13551311]",
"lrwx------ 1 mike mike 64 Mar 6 20:32 4 -> anon_inode:[eventfd]",
"lr-x------ 1 mike mike 64 Mar 6 20:32 5 -> pipe:[4709286]",
"l-wx------ 1 mike mike 64 Mar 6 20:32 6 -> pipe:[4709286]",
"lrwx------ 1 mike mike 64 Mar 6 20:32 7 -> anon_inode:[eventpoll]",
"lrwx------ 1 mike mike 64 Mar 6 20:32 8 -> socket:[4709752]",
"lrwx------ 1 mike mike 64 Mar 6 20:32 9 -> socket:[4709753]"]
list.each do |line|
puts line.match(/deleted/)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment