Monday, August 24, 2015

linux - Delete dot file only if non-dot file exists in *nix

I'm moving files from a FAT32 filesystem into an EXFAT filesystem on a Mac. My understanding is that FAT32 doesn't support extended file attributes so it created dot files for each file.



However now that I've copied everything into an exFAT filesystem, I'd like to delete these dot files. Is there a way to copy a dot file but only if a non-dot file exists in the same directory (this way I can avoid deleting dot files that are config files).




This would be on a Mac CLI.



Thanks!

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...