AOL: Why Is Your Cat Not Using the Litter Box? It Might Not Be What You Think A cat that suddenly stops using the litter box can throw any home into chaos. It’s frustrating to clean up after them, but what looks like mischief is usually a sign of something deeper.

Understanding the Context

Cats are ... Why Is Your Cat Not Using the Litter Box? It Might Not Be What You Think MSN: What to do - and not do - if your cat stops using the litter box What to do - and not do - if your cat stops using the litter box 46 There are a few ways to pass the list of files returned by the find command to the cat command, though technically not all use piping, and none actually pipe directly to cat. The simplest is to use backticks (`): cat `find [whatever]` This takes the output of find and effectively places it on the command line of cat.

Key Insights

cat "Some text here." > myfile.txt Possible? Such that the contents of myfile.txt would now be overwritten to: Some text here. This doesn't work for me, but also doesn't throw any errors. Specifically interested in a cat -based solution (not vim/vi/emacs, etc.). All examples online show cat used in conjunction with file inputs, not raw text...

Final Thoughts

cat is valid only for atomic types (logical, integer, real, complex, character) and names. It means you cannot call cat on a non-empty list or any type of object. In practice it simply converts arguments to characters and concatenates so you can think of something like as.character() %>% paste(). print is a generic function so you can define a specific implementation for a certain S3 class.