Python one-liner to print every file in the current directory
Posted
by Luis
on Stack Overflow
See other posts from Stack Overflow
or by Luis
Published on 2009-03-04T23:45:09Z
Indexed on
2010/05/04
0:48 UTC
Read the original article
Hit count: 396
How can I make the following one liner print every file through Python?
python -c "import sys;print '>>',sys.argv[1:]" | dir *.*
Specifically would like to know how to pipe into a python -c. DOS or Cygwin responses accepted.
© Stack Overflow or respective owner