-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri September 24 2004 09:45, Curtis Sloan wrote: > On Thu September 23 2004 22:53, s. keeling wrote: > > Incoming from Curtis Sloan: > > > I have a single text file (a .vcs from Outlook2vCal) that requires some > > Let me try to simplify: I need to add a space to the beginning of every > line in every DESCRIPTION section. However, I can't do a global replace > (add a space to the beginning of _every_ line in the file) because the vCal > format gets wrecked and won't import anymore. > > Basically, I need a programmatic way to determine the beginning and end of > every DESCRIPTION section and only do the replace on those blocks of text. > I can't do it manually, because there are ~650 VEVENTs. This just screams > "script me!" but I don't know how to start. > > > vi should show you right away if the newlines are Unix newlines. If
If my memory is correct, this is something that can be done in awk. I don't know the method though. HTH, Neil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFBVEJYL5PebEz22pURArFVAJ45YdM1m1rZbOa4HZ8Y8RqVgqmO8wCgq6Ul 6bAzuM7A3FH/Ql24oiK00qg= =9IR4 -----END PGP SIGNATURE----- _______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca

