From 86b842e19b8ef0d7031b96a12ff5397ed74b36a5 Mon Sep 17 00:00:00 2001 From: The Archangel <32396866+the4rchangel@users.noreply.github.com> Date: Thu, 21 Mar 2019 22:45:14 -0400 Subject: [PATCH] Added wildcard paragraph (#27338) --- guide/english/bash/bash-rm/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guide/english/bash/bash-rm/index.md b/guide/english/bash/bash-rm/index.md index d22b6ef062..32a75a2b1e 100644 --- a/guide/english/bash/bash-rm/index.md +++ b/guide/english/bash/bash-rm/index.md @@ -39,6 +39,10 @@ To remove a nonempty folder for example, type: rm -rf folder ``` +### Wildcards + +The `rm` command can be used in conjunction with an asterisk to delete multiple items matching a specific set of criteria. For example, you could use `rm test*` to remove all files in a directory starting with "test" regardless of whatever text follows that string. You can also use an asterisk by itself to purge all files in the current directory using `rm *`. + ### More Information: * [Wikipedia](https://en.wikipedia.org/wiki/Rm_(Unix)) * [Man pages](http://man7.org/linux/man-pages/man1/rm.1.html)