what_is_diff_doing.sh 190 B

12345
  1. #!/bin/bash
  2. # GPLv3+ see COPYING.GPL
  3. DIR=`ps -af | grep diff | awk -F' ' '{print $11}'`
  4. while sleep 1; do lsof 2>/dev/null | grep diff | grep $DIR | awk -F' ' '{print $9}' ; sleep 3; done