Good essay. I'd never heard of TECO so wiki'ed it. This is how to change the "hello" in "helloWorld.C" into "goodbye":
*EBhello.c$$ - Open file for read/write with backup *P$$ - Read in the first page *SHello$0TT$$ - Search for "Hello" and print the line
printf("Hello world!\n"); - The line
*-5DIGoodbye$0TT$$ - Delete "Hello", insert "Goodbye", and print the line
printf("Goodbye world!\n"); - The updated line
*EX$$ - Copy the remainder of the file and exit
I always thought vi was bad enough...
@christianSpaceman started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
Good essay. I'd never heard of TECO so wiki'ed it. This is how to change the "hello" in "helloWorld.C" into "goodbye":
*EBhello.c$$ - Open file for read/write with backup
*P$$ - Read in the first page
*SHello$0TT$$ - Search for "Hello" and print the line
*-5DIGoodbye$0TT$$ - Delete "Hello", insert "Goodbye", and print the line
*EX$$ - Copy the remainder of the file and exit
I always thought vi was bad enough...