Re: Stumped on this one

2021-06-16 Thread @lbutlr
On 15 Jun 2021, at 18:01, 'Jeffrey Jones' via BBEdit Talk wrote: > On 2021 Jun 15, at 19:28, @lbutlr wrote: >> >> I want to replace the first date in file 1 with the first date in file 2, >> and so on through the entire file. > > I'll bet there are several ways to do it with the Canonize

Re: Stumped on this one

2021-06-15 Thread Christopher Stone
On 06/15/2021, at 18:28, @lbutlr mailto:krem...@kreme.com>> wrote: > I have a file that has a few hundred lines, 77 of which are a HTML/XML style > date element > > Tue, 15 Jun 2021 17:12:26 -0600 > > I have another files that has 77 date lines in the same format. Everything is > different

Re: Stumped on this one

2021-06-15 Thread 'Jeffrey Jones' via BBEdit Talk
On 2021 Jun 15, at 19:28, @lbutlr wrote: > > I want to replace the first date in file 1 with the first date in file 2, and > so on through the entire file. I'll bet there are several ways to do it with the Canonize command. For example, extract all the date lines from the first file. Then

Re: Stumped on this one

2021-06-15 Thread Neil Faiman
This can probably be done with half a dozen lines of Perl. I haven't coded in Perl for years, so I won't try to write the actual code, but it would be something like: for every line in file 1 if line contains /.*/ read a date from file 2 replace