Say I have a file ```/templates/apple``` and I want to

* put it in two different places and then
* remove the original.

So, ```/templates/apple``` will be copied to ```/templates/used``` AND ```/templates/inuse```
and then after that I’d like to remove the original.
Is ```cp``` the best way to do this, followed by ```rm```? Or is there a better way?
I want to do it all in one line so I’m thinking it would look something like:
```cp /templates/apple /templates/used | cp /templates/apple /templates/inuse | rm /templates/apple
```
Is this the correct syntax?
Will it work as intended?
Or is there a more bash-y way of doing it? (I’d appreciate that if it can be done without using external tools like ```xargs``` or ```find``` and I’d like it to be POSIX-compliant if possible)

Yes, you're on the right track. However, the pipe operator `|` is not used in this way. Instead, you should use the `cp
It doesn’t work, giving me
```fatal error: destination must be a file or directory
```
This is because I can’t pipe the output of the first `cp` command to the subsequent `cp` command.
If I do it in two separate lines it works fine, but I was hoping to squeeze it into one. Any ideas?
I could use a script, but that seems like an unneeded level of complexity for this simple task