すでに開いたファイルには、選択したデータをどのようにエクスポートできますか?
 
 
 

以下のバリエーションを使用できます。

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