4 ms·
Actually it's not as bad as it looks at first glance. At least on OpenVMS, you normally use it like sed, and its not much worse than writing some regex, normall
by mveety 10y ago
Actually it's not as bad as it looks at first glance. At least on OpenVMS, you normally use it like sed, and its not much worse than writing some regex, normally.
Granted, writing a text editor in regex sounds awful.
- Groxx 10y agoYeah, the actual editing looks fine. The programs though. 0uz ! clear repeat flag ! <j 0aua l ! load 1st char into register A ! <0aub ! load 1st char of next line into B ! qa-qb"g xa k -l ga -1uz ' ! if A>B, switch lines and set flag ! qbua ! load B into A ! l .-z;> ! loop back if another line in buffer ! qz;> ! repeat if a switch was made last pass !