I made a simple shell script that takes a command line directory and extracts all of its contents to the current directory the script is running in. #!/bin/bashcp -v -R $1/* . I want to extend on this, let's say I want to pull out all of the PNG files in directory A and ONLY the PNG files. My first thought is to search for all files in the directory that end with a .png and cat it, but I have no idea how to then copy ONLY those files into the directory. 
How to extract certain files from a directory in shell?
linux;files;cp