![]() ![]() Also note that I'm using ls in these examples simply because it is a convenient way to illustrate their usage. For all the examples below, assume we are in the directory linuxtutorialwork and that it contains the files as listed above. Some more examples to illustrate their behaviour. We are not limited to only certain programs or situations. ![]() This is funky as it means we can use them on the command line whenever we want. The program never sees the wildcards and has no idea that we used them. We issue the command:Īnd then executes the program. When we offer it this command it sees that we have used wildcards and so, before running the command ( in this case ls ) it replaces the pattern with every file or directory (ie path) that matches that pattern. It is actually bash (The program that provides the command line interface) that does the translation for us. On first glance you may assume that the command above ( ls ) receives the argument b* then proceeds to translate that into the required matches. The mechanism here is actually kinda interesting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |