| rmbin | "softools" | rmbin |
rmbin -- find/remove binary files in subdirectories
rmbin [-dinrv] [-o extns] [-e extns] dir1 dir2 ... dirN
% du `rmbin -n .`
The -n option, of course, is also useful for verifying the delete operation before destroying the files.
Note that flags may be inserted between directory name arguments to change switches for different directories.
The rmbin task is used to descend a directory tree, deleting (or listing) all the binary files therein. The task may also be used to delete or list nonbinary files by explicitly listing their extensions.
Rmbin is used the strip the IRAF system down to the sources, prior to a full system rebuild. After changing to the IRAF root directory, one runs rmbin to delete all the binaries in lib, sys, pkg, etc. (but not in hlib, else a bootstrap will be necessary too). Mkpkg is then run to recompile the system; this currently takes about 20 hours on our UNIX 11/750 development system, provided nothing else is running on the system.
1. Delete all binaries in the pkg and sys directories of IRAF. The example is for a UNIX host, but this works for all other IRAF hosts as well.
% cd $iraf % rmbin -v pkg sys