![]() ![]() More details can be found in the link given below. There is also a script named 'Classifier' that will automatically organize your files based on the file extension to different directories. Copy Specific File Types While Keeping Directory Structure In Linuxįor more details, refer man pages.This trick could be helpful when you have to transfer large amount of different types of files from one directory to another. This way you can save a lot of time when you want to find a particular type of file. $ find -iname '*.mp3' -exec cp /home/sk/test2/ \ Then, run the following command to find and copy all files that matches with extension. Smash that up-like button if you liked the answer. Navigate inside the IWantToOpenThisFolderinGitBash folder and 'right-click' with your mouse, choose 'Show more options'. To do so, go to test1 directory using command: $ cd /home/sk/test1/ Navigate to the folder you want to open in Git Bash. Let us copy these mp3 files to test2 directory. Sample output: 'Bombay Rockers.mp3' 'Marconi Union - Sleepless.mp3' wiua9.jpgĪs you see in the above result, there are three mp3 files in the test1 directory. Let us check the contents of test directory. ![]() For the purpose of this guide, I will show how to quickly find and copy mp3 files from a directory called test1 to another directory called test2. Find command comes pre-installed on most Unix-like distributions, so let us not bother installing it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |