Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
progress-code
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
135 ms
·
1.
▲
by
progress-code
9y ago
#!/bin/sh for pid in $@; do cd /proc/"$pid"/fd || continue for fd in *; do file=$(readlink "$fd"); if [ ! -z "$file" ]; then size=$( (du -b "$file&