What is the difference between following 2 commands?cp -rp /dir1/*.* /dir2/cp -rp /dir1/* /dir2/
What is the difference between * and *.* while copying?
shell;shell script;command line;cp
*.* only matches filenames with a dot in the middle or at the end. For example:abc.jpgdef. * matches the filenames above, plus the names which don't have a dot at all. for example:data