I have a log file owned by
root that I want to copy into a directory owned by another user for him to analyse it (it must be uncompressed first).
Currently I'd have to
# cp log.xz /home/user/Documents # chown user:user /home/user/Documents/log.xz
Is there a way to issue both commands at the same time, perhaps with one or more