Hello,
sorry for the slight off-tpic posting but I'm converting my KO/PI journals now to text files which I will continue to maintain with nedit.
I have defined the steps for conversion already and found solution to all conversion issues, just one is too hard for me.
If someone can help me solve it I'll be able to provide a shell script which converts KO/PI exported journals to nice looking text files which are easily maintainable using nedit with a few macros.
I have a string like
==== Montag 31 Juli 2006
(Montag = Monday, any week day is possible here)
and need to convert it to
==== 31. Juli 2006 (Mon)
or even better to
==== 31.07.2006 (Mon)
i.e. cut the week day, copy the day number, convert the month name to a month number and print it, copy the year, and then putting the first three letters of the week day into brackets.
I'm sure this can be done with sed, but my knowledge is too limited and reading/understanding the tutorials would take me ages.
Could someone please help?
Thanks!
daniel