From 4a37cd131893fb67fcbba45ef57ee4b4015ef043 Mon Sep 17 00:00:00 2001 From: SomeAnonProgrammer Date: Thu, 21 Mar 2019 23:03:43 -0400 Subject: [PATCH] add documentation for wildcard (#30612) --- guide/english/bash/bash-rm/index.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/guide/english/bash/bash-rm/index.md b/guide/english/bash/bash-rm/index.md index 32a75a2b1e..fc9d49b4d3 100644 --- a/guide/english/bash/bash-rm/index.md +++ b/guide/english/bash/bash-rm/index.md @@ -22,7 +22,17 @@ rm rm -R ``` -You will be prompted with **'rm: remove regular file ‘hello’?'** and will need to respond **'y'** before the file can be deleted. Use this command with caution because 'rm' is a permanent action. +**Delete Files of a certain type** + +```bash +rm -R *file_extension +``` +- `*` accounts for the part to ignore, `file_extension` is the type to remove +Example: +```bash +rm -R *.txt +``` +Removes all file ending with .txt There are few commonly used arguments: