1
vote
1answer
277 views

How to rename files and subdirectories in bash command line?

In Rails sometimes I need to rename several directories and files, e.g.: app/models/person.rb app/views/persons/_person.haml app/controllers/persons_controller.rb ---- app/models/user.rb ...
5
votes
3answers
6k views

How can I remove files containing whitespace 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
4answers
6k views

When running `rm -rf`, is it possible to exclude certain subdirectories?

I routinely use bind mounts to aid in making space available in multiple locations without having to have multiple logical volumes / physical partitions / LUNs, etc. For example, I may have a 200G LV ...