How find file name by pattern to immediately use it again for the next time
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 e.g. there's BAK directory so as if copy operation: Code:
cp .hello-577 .world-999 .foo-444 hello world foo BAK Code:
rm .hello-577 .world-999 .foo-444 hello world foo |
The standard answer would be find -exec.
|
@OP Where is the pattern?
|
As usual, what have you tried and where are you stuck?
|
This is from one of the LQ FAQs and would prove to be very helpful for you:
http://www.catb.org/~esr/faqs/smart-questions.html |
All times are GMT -5. The time now is 07:55 AM. |