Created
May 10, 2011 21:35
-
-
Save dpritchett/965432 to your computer and use it in GitHub Desktop.
simple use of xargs to streamline a series of mkdir ops
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir playground | |
mkdir playground/src | |
mkdir playground/classes | |
echo playground playground/src playground/classes | xargs mkdir | |
# mkdir: cannot create directory `playground': File exists | |
# mkdir: cannot create directory `playground/src': File exists | |
# mkdir: cannot create directory `playground/classes': File exists | |
# Bonus points for DRYing the "playground" part...? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment