-
-
Save rsbohn/3c659349f6a8e5ccde04 to your computer and use it in GitHub Desktop.
acme editor: insert the current date at the top of the file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/plan9/bin/rc | |
echo -n 0 | 9p write acme/$winid/addr | |
date | sed a\\n | 9p write acme/$winid/data | |
echo -n '1/^/' | 9p write acme/$winid/addr | |
echo -n 'dot=addr' | 9p write acme/$winid/ctl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment