I created a folder on my home directory call junk, and let's say I want to move all .cpp and .h files to it. How would I do it? My first thought is to start with find ~ -name *.cpp -print, but I don't know how to put in multiple patterns into the find argument, and I'm fairly lost after that.
Above excluding the
We're only removing regular files (
If on a GNU system, you can use the
the output will show which command would be executed, like a dry run. If that looks good, you can remove the
Command Break Down
For more information on regular expression you can refer