From 973a8d0b599dbc09d88dfc825cebdbbf0175496e Mon Sep 17 00:00:00 2001 From: Emil Williams Date: Mon, 8 Apr 2024 23:47:02 +0000 Subject: [PATCH] include purpose --- README | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README b/README index fa0fc98..26212b0 100644 --- a/README +++ b/README @@ -56,9 +56,23 @@ Removes any singular file or directory non recursively defined within @{...}, this has no effect on the normal processing of the statement and is macro'd out before it is executed. +This is useful in such cases that you create a temporary file or output file +that may be later recreated or may need to be manually updated. It is most +useful for simple scrubbing of outputs. You could have a directory of toy +programs and wish to clean them all up, and using a command like: + +for i in `ls *.c`; do bake -x $i; done + +This is of course can also be done with another UNIX command like the following, +assuming the other files outside of the regexp are not important: + +ls | egrep -v '.+\.[ch]' | xargs rm + +This feature was suggested by the original author of Shake, blame him for this. + --- Options --- -Options must come as the first argument, and may be merged together, such as -xn. +Options must come before the filename, and may be merged together, such as -xn. -v, --version: display versioning and licensing information. -h, --help: display the help message, similarly to empty input.