Skip to content

Instantly share code, notes, and snippets.

@aaronjeline
Last active November 22, 2019 19:26
Show Gist options
  • Save aaronjeline/590c0ccc021d9576e59fa08237552a79 to your computer and use it in GitHub Desktop.
Save aaronjeline/590c0ccc021d9576e59fa08237552a79 to your computer and use it in GitHub Desktop.
CommandMover
#!/usr/bin/env python3
import json
with open('./convert_all.sh') as f:
lines = f.readlines()[1:]
lines = [line[:-3] if '\\\n' in line else line for line in lines]
print(lines)
print(json.dumps(lines))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment