Bash one-liners useful for bioinformatics
2 points by lysozyme 9 months ago | 1 comment- eesmith 9 months ago
That hasn't been updated for Python 3, and I really don't think it does anything reasonable. The 'r' is not needed, the seek is pointless, and the output will contain the Python representation of a list of strings.Display hidden control characters: python -c "f = open('file.txt', 'r'); f.seek(0); file = f.readlines(); print file"
Use cat -v:
Has Perl disappeared from general bioinformatics knowledge?-v Display non-printing characters so they are visible. ...