Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sprior
· 4mo ago · 0 comments
I raised eyebrows recently when I was working with someone and we needed to create a file and instead of starting an editor I did: cat > filename ... Ctrl-D
Comments
[–]
przemub
4mo ago
Oh I always do that! Send them my greetings.
[–]
bonsai_spool
4mo ago
Why not touch or echo? No reason for an editor or cat
[–]
stouset
4mo ago
You can type the intended file contents as-is.
[–]
sprior
OP
4mo ago
For a one line file sure, but I was creating multiple lines.