How can I move only the plain files (not the directories) from one folder in Linux to another folder using the
I have tried
mv * ~/, but it copied everything including the directories.
I'm a "use a hammer for everything" kinda guy so I use bourne shell programs for stuff others use external programs for...
Some people like to get things done in as little typing as possible but I'm a pretty quick typist and I've got stuff like this built into my brain so it's not too much of a pain to do this instead of looking up the exact arguments to find and exec and all that.
@Mereghost is very close. Here's what I get to move all files (including hidden files), but not directories:
If you want to move only regular files and not hidden files:
If you want to move only hidden files and not regular files: