How to find a filename which contain particular pattern and want to move to
Hi Friends,
Can you help me on this... How to find a filename which contain particular pattern and want to move to another directory Jain |
Welcome to LQ
Code:
man find |
Quote:
I have not find my answer Please |
Hi
Plz anybody help me... Thanks in advance... |
The find man page is full of information, but it can be somewhat painful to consume in one sitting...
Here is an example that does the type of thing you are asking for. To understand it you'll need to look at both the find man page, specifically regarding the '.', -name and -exec (and {} +), and the mv man page for the '-t'; Code:
find . -name '*.mp3' -exec mv -t ~/music {} + ; EVo2. |
All times are GMT -5. The time now is 12:24 PM. |