如何将选定的数据导出到已打开的文件中?

 
 
 

可以使用基于以下内容的变型:

string $tmp =`file -q -sn`;
file -rename "tests" ; 
file -es;
file -rename $tmp;