[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

Re: Shell script for removing FrameMaker debris files



> Surely I don't have to reinvent the wheel?  Surely some kind soul in
> FramersLand has already written a shell script for Windows 95/98/ME/NT/2000
> which, given a starting directory, walks down the subdirectory tree
> recursively and tautologously to remove all the unwanted *.backup.fm,
> *.backup.book, *.auto.fm, *.auto.book, *.recover.fm, *.recover.book, and
> *.lck files left behind at the end of a project?  Surely this kind person
> is so wonderfully generous as to publish the script on the framers lists?
> 
> Perhaps this kind person has a counterpart who has done the same for
> Macintosh and UNIX?

I can only offer a solution for UNIX:

find <starting dir> \( -name '*.backup.fm' -o -name '*.backup.book' \
-o -name '*.auto.fm' -o -name '*.auto.book' -o -name '*.recover.fm' \
-o -name '*.recover.book' -o -name '*.lck' \) -exec rm {} \;

This single command does not make any checks whether the corresponding
*.fm files exist or not, it just deletes all the specified files,
recursively from <starting dir>.


- - - - - - - - - - - - - - - - - - - - - -
Thomas Michanek, FrameMaker/UNIX/MIF expert
mailto:Thomas.Michanek@telia.com   (Sweden)
http://w1.133.telia.com/~u13304072/framers
* *  U P D A T E D   O N   N O V .   2  * *
- - - - - - - - - - - - - - - - - - - - - -


** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **