Re: Count lines
Re: Count lines
- Subject: Re: Count lines
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 12 Nov 2004 17:51:07 -0800
On 11/12/04 5:41 PM, "John C. Welch" <email@hidden> wrote:
>>
>> That doesn't work when I have Windows files: it inserts an extra blank line
>> for the CR part of the CRLF. The whole point of what I'm doing here is to
>> see if there's more than 1 LF-delimited "line" in the file: if there is,
>> then it's a Windows or Unix file and further sed operations will work on it.
>> If it's a Mac file that has only one "line" (as far as sed is concerned),
>> _that's_ when I need to replace \r with \n before I can proceed. I
>> especially do not want to do the \n replacement for Windows files.
>>
>
> This is why I pay for BBEdit. Click the button, read the number.
Thanks, John. I understand. But that's of absolutely no interest or
relevance when a script I wrote is running on other people's machines. I
meant "programmatically" when I asked the question, but I didn't say so -
sorry. As I've just described a few times by now, it's actually my script -
not I - that needs to know the answer. Fortunately for me, others understood
and replied with solutions I can use. I'll bear it in mind that BBEdit
counts lines, though. (So does Tex-Edit Plus and some other editors I know.)
I'm not at all surprised. Thanks for the suggestion.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden