#! / bin / bash
')
lsof -n + L1 | grep / tmp / Flash | \
awk '{line = "/ proc /" $ 2 "/ fd /" $ 4; sub ("[^ 0-9] * $", "", line); print line} ' | \
xargs -I '{}' cp -v '{}' -t "$ @" --backup = t
$ ./copy-cached-flv.sh ~ / my_flash_videos / `/ proc / 24624 / fd / 29 '->` / home / giner / my_flash_videos / 29' `/ proc / 24624 / fd / 35 '->` / home / giner / my_flash_videos / 35'
$ ./copy-cached-flv.sh ~ / my_flash_videos / `/ proc / 24624 / fd / 29 '->` / home / giner / my_flash_videos / 29' (backup: `/home/giner/my_flash_videos/29.~1~ ') `/ proc / 24624 / fd / 35 '->` / home / giner / my_flash_videos / 35' (backup: `/home/giner/my_flash_videos/35.~1~ ')
#! / bin / bash
lsof -n + L1 | grep / tmp / Flash | \
awk '{line = "/ proc /" $ 2 "/ fd /" $ 4; sub ("[^ 0-9] * $", "", line); print line} ' | \
xargs mplayer -softvol-max 1000
Source: https://habr.com/ru/post/134385/
All Articles