|
Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
#!/bin/env python3
# This file:
# http://anggtwu.net/PYTHON/blogme0.py.html
# http://anggtwu.net/PYTHON/blogme0.py
# (find-angg "PYTHON/blogme0.py")
# Author: Eduardo Ochs <eduardoochs@gmail.com>
import sys
print(sys.argv)
temp_a = sys.argv[2]
temp_b = sys.argv[4]
with open(temp_a, 'r') as input:
content = input.read().strip()
content = f"({content})"
with open(temp_b, 'a') as output:
output.write(content + '\n')
"""
(eepitch-shell)
(eepitch-kill)
(eepitch-shell)
rm -fv /tmp/a /tmp/b
echo abc > /tmp/a
./blogme0.py -i /tmp/a -o /tmp/b
cat /tmp/a
cat /tmp/b
""
"""
* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
./blogme0.py
"""