code:
du -hc "`find . -name "content_index" -print`"
Note, it should have used "`" instead of "'". Additionally, this command doesn't work in bash. You will get "File name too long" error. To rectify this, simply use the command:
code:
tcsh
This will get you into the tcsh shell. Now the command will work as advertised.



Sign In
Register
Help


MultiQuote
Moreover, I cannot see how it could possibly work ... if there is more than one file, enclosing the command substitution within ""s will say "no word splitting," and you'll get the word too long error either way, or at least file not found. The following, however, works in both tcsh and bash under 10.3.
