7
rated 0 times
[
7]
[
0]
/ answers: 1 / hits: 527
/ 3 Years ago, mon, june 21, 2021, 2:04:10
It works fine when I copy all hidden files using regex:
cp -r source/.[^.]* destination/
and it just copies exactly files beggining with a dot .
.
However, I found the following works also:
cp -r source/.[^.]* destination/
In regular expression, doesn't dot .
mean "any singular character"? So why does not the second command copy regular files (those not hidden) ?
Why is the dot .
interpreted literally in cp
command?
More From » clipboard