$ mkdir backup && mv * backup/ mv: cannot move `backup' to a subdirectory of itself, `backup/backup'
Works, but issues a warning. Also exit code is 1.
How to do it properly (but not [much] longer)?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community