ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

Finished Coding Snack: Separate .txt file at any specified punctuation mark

<< < (6/8) > >>

timns:
There you go. Next time you run, you'll get build 0.2 which includes numbering thus:

00001. Faust is the protagonist of a classic German legend; a highly successful scholar,
00002. but also dissatisfied with his life,
00003. and so makes a deal with the devil,
00004. exchanging his soul for unlimited knowledge and worldly pleasures.
00005. Faust's tale is the basis for many literary,
00006. artistic,
00007. cinematic,
00008. and musical works.

Quidnunc:

PERFECT!!!!   

Thanks again, you are a star!!!!

Trevor

timns:
 :-[

But I'll take it  :D

db90h:
This is why GNU on Windows (or Cygwin as I use) is a good idea. The classic tools available on the linux command line can do almost anything you want regarding text file formatting, reformatting, or parsing. Of course, they go far beyond that, but if everyone learned the basics of linux shell scripting, which is now so easily applied to Windows, they could solve [their own] simple problems very easily. However, I suppose some people are better than others with scripting, I dunno. It is a bit unforgiving in syntax, and you do have to have 'that type' of mind.

Of course, having a programmer write you a custom solution is even better ;)

Quidnunc:


"if everyone learned the basics of linux shell scripting, which is now so easily applied to Windows, they could solve [their own] simple problems very easily."

This is a fine sentiment BUT firstly, not everyone wants to learn the skills necessary to accomplish this; at 74 I would (and do) find it difficult to understand all the 'jargon' used by computer techies and if you don't understand the language it is even more difficult to learn the skills. Secondly, the people who offer their expertise on websites such as this do so for their own reasons--recognition, the challenge, even fame of a sort so if everyone did as you suggest a large number of people, including yourself I suspect, would be denied these rewards.  People like me are, or should be, forever grateful to people like you and all the others who give up their time and energies to solve a problem.  The problem I had (and solved by Timns) is, for the present at least, a one off.  At this time I don't envisage needing another problem resolving.  Should I have gone to the lengths you suggest to resolve it myself, or give it to some one else who then gets the credit, the reward and my gratitude?  It would be interesting to hear the views of others--both users and doers.

Quidnunc

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version