Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

With python and installed 3rd-party-modul pyperclip →→....pip3 install pyperclip --user

import pyperclip as clipboard
newstring = clipboard.paste().strip()
clipboard.copy(newstring)

With python and installed 3rd-party-modul pyperclip →→....pip3 install pyperclip --user

import pyperclip as clipboard
newstring = clipboard.paste().strip()

# maybe do something more here with newstring
# eg: newstring = newstring.replace('\n', '\t')

clipboard.copy(newstring)