From 46057ca70bca38986a093ea13e44457a3bb747fa Mon Sep 17 00:00:00 2001 From: "Paul P.H. Wilson" Date: Sun, 28 Apr 2013 21:42:08 -0500 Subject: [PATCH] Clean up ambiguity between file and filename. --- shell/Readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shell/Readme.md b/shell/Readme.md index 54a8be5..6ce348e 100644 --- a/shell/Readme.md +++ b/shell/Readme.md @@ -353,12 +353,12 @@ this command: ls *4*1 -lists every file in the current directory which contains the number -`4`, and ends with the number `1`. There are four such files: `0241`, -`0341`, `0431`, and `0481`. +lists every file in the current directory whose name contains the +number `4`, and ends with the number `1`. There are four such files: +`0241`, `0341`, `0431`, and `0481`. So how does this actually work? Well...when the shell (bash) sees a -word that contains the `*` character, it automatically looks for files +word that contains the `*` character, it automatically looks for filenames that match the given pattern. In this case, it identified four such files. Then, it replaced the `*4*1` with the list of files, separated by spaces. In other words, the two commands: -- 2.26.2