How can I make a zip of all the files and subdirectories in the directory "mydir", except all those files/dirs that begin with a ".*"?
The command:
zip -r mydir.zip mydir/
will include everything. For example, if I have:
mydir/foo
mydir/bar
mydir/.hello
I'd like foo and bar to be included in mydir, but not .hello.
How can I do this? thanks.