Y
Hacker News
new
|
ask
|
show
|
jobs
by
sprior
15 days ago
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
2 comments
przemub
14 days ago
Oh I always do that! Send them my greetings.
link
bonsai_spool
15 days ago
Why not touch or echo? No reason for an editor or cat
link
stouset
15 days ago
You can type the intended file contents as-is.
link
sprior
15 days ago
For a one line file sure, but I was creating multiple lines.
link