From Electrum's documentation, the following should sweep all private keys to a new address:
electrum listaddresses --funded | electrum getprivatekeys - | jq 'map(.[0])' | electrum sweep - [destination address]
Is there any way to enter a WIF key into the command line to specify it directly? The address I'm wanting to sweep isn't in my Electrum.
For example, let's say this is the private key (never use this): L3ei8Zdu3eVRxMifD8XFN14jofv25ME51AhTzJr999dazxrWZMrZ
And this is the address I want the coins swept to: 1KdcMcRXNTBYT5BnHcmFHuYvvdWGsPnnwb
Assume that neither the sending nor receiving address is in my Electrum wallet.
What would I need to enter in Electrum command-line?