xfilesel

The xfilesel program is used to copy the X selection into a file and to copy a file contents to the X selection. It acts as a bridge between applications that support selections and console applications (for example with default Midnight Commander clipboard file ~/.cedit/cooledit.clip).