| 1. |
Solve : MS-DOS Text Manipulation Question? |
|
Answer» Hey all, (Is this a joke?)what do you think?Quote from: ghostdog74 on May 19, 2007, 02:59:35 AM Quote from: contrex on May 19, 2007, 02:14:21 AM(Is this a joke?)what do you think? You can never tell in this place Quote from: contrex on May 19, 2007, 03:01:40 AM Quote from: ghostdog74 on May 19, 2007, 02:59:35 AMwell..Quote from: contrex on May 19, 2007, 02:14:21 AM(Is this a joke?)what do you think? sample input: Code: [Select]C:\TEMP>more input This is a sample text file to show that using edlin is a joke. sample edlin command file: Code: [Select]C:\temp>more test.ed 1,#Ra joke<ctrl-Z>not a joke e output: Code: [Select]C:\temp>edlin input < test.ed End of input file *1,#Ra joke^Znot a joke 2: to show that using edlin is not a joke. *e final result: Code: [Select]C:\temp>more input This is a sample text file to show that using edlin is not a joke. I never intended to convey that the suggestion to use Edlin was a joke, in the sense that it wouldn't work. What I meant was that as someone who has been using PCs since 1981, I was so glad when better tools than Edlin came along! Edlin was created by Tim Paterson in two weeks in 1980, and was expected to have a six-month shelf life. Use of Microsoft's Edlin in today's environments is somewhat limited as it does not support long filenames. When attempting to describe Edlin's features, words like "crude" and "rudimentary" are often chosen. (Especially by me.) Quote from: contrex on May 19, 2007, 03:21:33 AM I never intended to convey that the suggestion to use Edlin was a joke, in the sense that it wouldn't work.glad to hear that. Quote What I meant was that as someone who has been using PCs since 1981, I was so glad when better tools than Edlin came along!edlin was just part of a myriad of tools that was available back then. sorry but i am curious , out of the box back then, can you suggest to me what better tools than edlin to do automated string manipulations like this? delete line number 10 to 15 for example? Quote Edlin in today's environments is somewhat limited as it does not support long filenames.so just keep it short? FWIW, this should not be the reason for not using it when the need arises. Quote When attempting to describe Edlin's features, words like "crude" and "rudimentary" are often chosen. (Especially by me.)well, batch is "crude"/"rudimentary" to me too if i am comparing against better tools to do the task at hand. however, if i just want to move/copy files, i can quickly write in batch. its quick and fast. Its the same when i decided to use edlin. |
|