Created
November 24, 2014 15:16
-
-
Save mrmanc/8aef830945ce03aa65f0 to your computer and use it in GitHub Desktop.
Problem caused by apostrophe’s special meaning in xargs
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
In response to http://askubuntu.com/questions/80244/how-do-i-sort-by-human-readable-sizes-numerically/552976?noredirect=1#answer-552976 | |
mark:~/dutest $ touch "a'b" | |
mark:~/dutest $ du -s * | sort -n | cut -f2 | |
a'b | |
mark:~/dutest $ du -s * | sort -n | cut -f2 | xargs du -sh | |
xargs: unterminated quote |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment