Using Terminal and Shell/Bash commands is there a way to retrive specific files from a web directory? I.e.
Directory: http://www.site.com/samples/
copy all files ending in “.h” into a folder
The folder contains text files, and other files associated that are of no use.
Thanks 🙂
There are multiple ways of achieving this recursively:
1. using find
1.1 making directorys using find -p to create recursive folders without errors
1.2 finding specific files and copying to backup folder -p to perserve permissions
Using tar well actually for reverse type of work i.e. to exclude specific files which the part of the question related to text files matches this answer more:
You can have as many excludes as you liked added on