In another question I asked on how to hide all .pyc files when using ls, Ignacio suggested the following:

This, as I mentioned above, doesn't work precisely, since the output is occasionally misaligned:
ceasarbautista@hse140:~/Desktop/Statistics/statistics/markov$ ls
README __init__.pyc markov.py matrix2graph.pyc pathfinder.pyc priority_dict.pyc spanning.py
__init__.py graph.py matrix2graph.py pathfinder.py priority_dict.py space.py vector.py
ceasarbautista@hse140:~/Desktop/Statistics/statistics/markov$ ls | grep -v '\.pyc$' | column
README graph.py matrix2graph.py priority_dict.py spanning.py
__init__.py markov.py pathfinder.py space.py vector.py
While I got a satisfactory answer, I'm curious: why does column do this (and can it be fixed to print correctly)?
od -csay? – Ignacio Vazquez-Abrams Oct 24 '11 at 2:48lsoutput is misaligned. Perhaps it's something with your terminal. Trying adding| cat -Ato the end of the pipeline, which will expose any hidden control or escape sequences that might be corrupting the output. – James Sneeringer Oct 24 '11 at 4:52