Developer Cleverly Shrank 2,600 Lines of C into a Six-Line Script but Still Ending Up Losing Sleep
The Register, Friday, November 13th, 2026
A telco developer replaced 2,650 lines of C with a six-line shell script, then lost sleep to a paging mishap.
In The Register's On Call column, a reader called Tim recalls being asked to fix a data transfer program that included a bespoke implementation of FTP.
He spent eight hours on a six-line shell script, mostly tracking down FTP source code through a Wide Area Information Server in the days before the web.
The script ran overnight to collect data from the telco's switches and upload it to a mainframe, paging him after three failed connection attempts.
The script worked but the networks did not, so his pager went off two or three times a night until, after two weeks, his manager passed the pager to a colleague, which caused its own trouble.