Created
October 29, 2016 09:45
-
-
Save nwiizo/4227d63305e7d2f4ef6baf1ec9e4461d to your computer and use it in GitHub Desktop.
This file contains 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 python | |
# -*- coding: utf-8 -*- | |
import sys | |
import re | |
fi = sys.argv[1] | |
f = open(str(fi),"r") | |
ai = f.read() | |
text = ai.replace("\n","\\n") | |
text = text.replace(" "," ") | |
text = text.replace("\r","") | |
#sys.stdout.write(text) | |
print(text) | |
f.close() | |
##Using `$for ((i=$COLUMNS; i >=11; i--));do clear;echo -e "`python3 aa.py [aa.txt]`"|awk -v col=$i '{printf("%" col "s\n",$0)}';sleep 0.06;done` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment