Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tyingq
on Feb 3, 2021
|
parent
|
context
|
favorite
| on:
Getting better at Linux with mini-projects
Replying to my own post, looks like ex is more straightforward.
ex -sc '0r header.txt' -c wq spreadsheet.csv
And ugly, but works for stdin:
echo "whee" | ex -sc '0r /dev/stdin' -c wq somefile
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: