You could add a dummy file to the command, then delete the copy of that file. For example:
[tt]
cp /dev/null *.deb package/output
rm package/output/null
[/tt]
DonQuixote:
If the directory package/output exists, the file(s) will be copied into that directory. If the directory package/output does not exist, then an error will be returned if more than one file is being copied. At least that's how I understand GNU cp operates.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.