6 lines
112 B
Bash
6 lines
112 B
Bash
for fd in $(/usr/bin/env ls /proc/$$/fd); do
|
|
if [ "$fd" -gt 10 ]; then
|
|
#echo "$fd"
|
|
exec {fd}>&-
|
|
fi;
|
|
done
|