You can use a variation on the following:
string $tmp =`file -q -sn`; file -rename "tests" ; file -es; file -rename $tmp;
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License