Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

How to copy *.txt files recursevely in another destination?

Try using find ...

find /MyDir -name '*.txt' -exec cp -t /MyDestination "{}" +

which will find the relevant txt files and pass them in batches to cp to have it copy them to MyDestination.

Tags:

Linux

Related

The User Profile Service Failed the Logon. User Profile Cannot Be Loaded How can I decrypt multiple files in a directory with gpg? Logrotate not working BASH Scripting, su to www-data for single command What's the difference betwen the single dash and double dash flags on shell commands? Generic Nagios plugin to check if a specific process/service is running? How do I limit MS SQL Server memory usage? Why do mobile networks have high latencies? How can they be reduced? RDP fakeout when connectiong: does nothing, no error How do I reattach to Ubuntu Server's 'do-release-upgrade' process? Linux CPU usage and Process Execution History Restrict password based SSH access per user but allow key authentication

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy