How can I export selected data to an already opened file?

 
 
 

You can use a variation on the following:

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

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License