Skip to content

Instantly share code, notes, and snippets.

@tanduong
Last active May 8, 2021 08:35
Show Gist options
  • Save tanduong/6e244d1d71a26c873a27fd0cbabc0c55 to your computer and use it in GitHub Desktop.
Save tanduong/6e244d1d71a26c873a27fd0cbabc0c55 to your computer and use it in GitHub Desktop.
def cmd(cm: str):
import subprocess
import re
return subprocess.run(re.compile("\s+").split(cm))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment