#!/usr/bin/env bash

for flashpid in $(pgrep -f flashplayer.so); do
	cd "/proc/$flashpid/fd"
	for video in $(file * | grep '/tmp/Flash' | sed 's/\(^[0-9]*\).*/\1/g'); do
		echo "/proc/$flashpid/fd/$video"
	done
done



syntax highlighted by Code2HTML, v. 0.9.1