diff --git a/bash/pv_of_pid.sh b/bash/pv_of_pid.sh new file mode 100644 index 0000000..a8cf64b --- /dev/null +++ b/bash/pv_of_pid.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# get interactive pipeview of all files a PID has opened. Works also with forked PIDs (takes last pid, of pidof, which is usually the oldest pid) +pv -d $(pidof firefox |awk '{print $NF;exit}') +