When working with the output of commands such as
locate which produce lists of paths in "human readable form" (i.e. without
\ in front of spaces), how do you redirect their output to another command?
The output of
$ locate [something] produces paths with spaces in them, which inhibits other programs to use the paths in the case they contain spaces. For example, if I were to
$ du -h `locate *.doc`
this will produce an error on all files and directories that contain spaces. (wrapping the ticks in spaces does not work)