Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: What's your favorite little script you've written?.
Typically
cat file2 >> file1
cat file2 file1 > file3 mv file3 file1
The script is called "ins"
ins file1 < file2
ins file1 25 < file2
One of the most useful scripts I have ever written
Only uses sed or ed
There are no comments on this comment yet.
Typically
If want to place file2 at the top of file1 instead of the bottom Too much typing, margin for errorThe script is called "ins"
Can also use line number Inserts file2 at line 25 of file1One of the most useful scripts I have ever written
Only uses sed or ed