June 2017
Beginner
502 pages
11h 26m
English
The double asterisk is being used in two different contexts:
So, we have this:
zarrelli:~$ for i in * ; do echo "$i" ; donefiletest2
This is different from the following:
zarrelli:~$ for i in ** ; do echo "$i" ; donefiletest2test2/file2
The double star matched all files and directories globally. If the double star does not work for you, enable the globstar shell options with zarrelli:~$ shopt -s globstar ; for i in ** ; do echo "$i" ; done. The globstar value changes the way the shell interprets the double star, which, in a file ...
Read now
Unlock full access