Last active
November 22, 2019 19:26
-
-
Save aaronjeline/590c0ccc021d9576e59fa08237552a79 to your computer and use it in GitHub Desktop.
CommandMover
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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