2 ms·
Are you sure you don't mean 'cat foo.py' or maybe 'cat - < foo.py'?
by anewaccountname 19y ago
Are you sure you don't mean 'cat foo.py' or maybe 'cat - < foo.py'?
- bayareaguy 19y agoYes, 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.
- anewaccountname 19y agoAh, now I see.