Thursday, June 16, 2011

Ubuntu 11.04 Save /tmp Flash Files

Figured I'll share this with those of you who are still looking for a cool way of accomplishing this.


#!/bin/bash

for h in `find /proc/*/fd -ilname "/tmp/Flash*" 2>/dev/null`; do ln -s "$h" `readlink "$h" | cut -d' ' -f1`; done
cd /tmp
cp Flash* ~/Desktop

Source

No comments:

Post a Comment