6
rated 0 times
[
6]
[
0]
/ answers: 1 / hits: 3850
/ 2 Years ago, tue, april 26, 2022, 6:09:59
I am trying to copy all .odt
files including those in subdirectories.
cp -r ~/Documents/* ~/copies # works as expected
cp -r ~/Documents/*.odt ~/copies # does not work as expected
The first line will copy all files and in all subdirectories but the second will copy only the .odt
files in ~/Documents
and none of the files in the subdirectories.
More From » command-line