Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are you sure you don't mean 'cat foo.py' or maybe 'cat - < foo.py'?


Yes, I'm sure.

cat > foo.py copies standard input into the file foo.py. The rest of the characters you're seeing in the message are what I typed in. The only character you don't see is the Ctrl-D I type to indicate EOF. This is a quick and easy way of creating foo.py without using an editor.


Ah, now I see.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: