In a Bash-script, is it possible to open a file on \"the lowest-numbered file descriptor not yet in use\"?
I have looked around for how to do this, but it seems that Bas
If it is on Linux, you can always read the /proc/self/fd/ directory to find out the used file descriptors.
/proc/self/fd/