How do you exclude a folder when performing file operations i.e. cp etc.
I would currently use the wild card * to apply file operation to all, but I need to exclude one
If you're using bash and enable extglob via shopt -s extglob then you can use !() to exclude the given pattern.
shopt -s extglob
!()