Skip to content

Instantly share code, notes, and snippets.

@nwiizo
Created October 29, 2016 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nwiizo/4227d63305e7d2f4ef6baf1ec9e4461d to your computer and use it in GitHub Desktop.
Save nwiizo/4227d63305e7d2f4ef6baf1ec9e4461d to your computer and use it in GitHub Desktop.
#!/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