1
vote
2answers
300 views

Recursively touching directories' last modified datetime as the same datetime of the last modified file inside

Previously I have ran dos2unix on every *.php file on my server recursively with this command: find . -name '*.php' -type f -exec dos2unix --keepdate {} + All files processed by dos2unix had its ...
5
votes
3answers
6k views

Removing some types of files recursively

I'm having some trouble with this command under bash in Ubuntu: rm $(find . -name "*.exe") My aim is to remove, recursively, all files ending in ".exe". But some files have white spaces and this ...
2
votes
2answers
349 views

Create directories

Is there an easy way to create all subdirectories of a path in linux ? Something like mkdir /a/b/c/d/e/f executed in / should create directories a,b,c,d,e,f