How do we find file names by pattern to use them, for copy/move or delete etc, again for the next time in one line CLI, e.g.
Code:
$ ls
.hello-577
.world-999
.foo-444
jjj
hello
world
foo
kkk
lll
so must get all .hello-577 .world-999 .foo-444 hello world foo to use them in the operation said
e.g. there's BAK directory so as if copy operation:
Code:
cp .hello-577 .world-999 .foo-444 hello world foo BAK
e.g. they're removed so as if operating:
Code:
rm .hello-577 .world-999 .foo-444 hello world foo
Please sincere help is invaluable