Re: ASCII files becoming double lined

2006-03-30 Thread wc_fbsd



Vaaf wrote:
I pointed out a flaw in FreeBSD's methodology. The fact that it 
doesn't have one.


I thought you were using DragonFlyBSD now. Why are you complaining 
on this list then?


If there is one thing Vaaf does well, it's annoying all of you.  If 
you judge it based on the number of responses he's generated, he not 
just good, HE'S A FREAKING CHAMPION!  Go Vaaf!


Much as I hate to use the term, all the attention is just 
"empowering" him.  You know, like a bratty child.


What do you say we all just ignore him, and hope he goes away?

  -Wayne
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ASCII files becoming double lined

2006-03-30 Thread usleepless
> >www.bsdconsulting.no
> >
> >or is that a risk you can't take either? ( or is bsdconsulting.no
> >you?, then all bets are off )

no, i was trying to save you time and money.

but after some googling i just discovered you are just a kid. i am a
funny guy, i just might find your professor/teacher involved in your
"thesis" and point him to your resource wasting/brutal activities
here.

> Are you trying to advertise for a friend of yours here?

no sorry, i have no Norwegian friends :-) i chose this company from
the FreeBSD website.

> >i don't know why i am doing this. i have a very hard time
> >understanding your brutality towards people who obviously have tried
> >very hard to help you.
>
> What thread are you referring to here?

buildworld baby

> I love those who helped me.
> As long as the last word they say isn't:
>
> Ok you're an idiot, you didn't do what I say even though
> you claim to do what I told you to do. Things still don't work?
> Obviously you didn't do what I told you to do.

it takes a man take accept the truth.

> >and then you go on and ask stooopid (dvd) questions on the list, which
> >aren't even remotely connected to freebsd. questions which show you
> >obviously don't know what you are talking about.
>
> The reason I asked it on the FreeBSD questions list was because
> I tried the exact same approach on a Linux machine and it worked just
> fine there.

ahhh, there it is:

you are not here with an open mind, just with preoccupations.

> >i respect those who continue to support, disregarding history or
> >person. respect.
>
> Are you a much respected person?

i wouldn't dare to say.

> Otherwise there's no point in following your advice.

h. i will need to think about this.

> >could some fellow norwegian talk some sense into this guy? you guys
> >must be ashamed, right?
>
> What are they suppose to say?

if a dutch person was harassing the list like this, i would send him a
personal email in dutch stating he is wasting resources, not
contributing, and should treat the internet as the real world. if he
persisted i would probably pay him a visit.

regards,

usleep
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ASCII files becoming double lined

2006-03-30 Thread Lars Cleary

Vaaf wrote:

I pointed out a flaw in FreeBSD's methodology.
The fact that it doesn't have one.

I thought you were using DragonFlyBSD now.

Why are you complaining on this list then?

As to CRLF, check google, it helps:
http://galaxy.ps.uci.edu/users/esirko/howto/crlf.html

And I also find you amusing, a bit like a jester :-)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ASCII files becoming double lined

2006-03-30 Thread Jerry McAllister
> 
> At 19:38 30.03.2006, Kris Kennaway wrote:
> >On Thu, Mar 30, 2006 at 05:45:11PM +0200, Vaaf wrote:
> >
> > > As for Mr. Kennaway, if you had a big bugger up your nose the minute
> > > you're about
> > > to go on a date, wouldn't you like an honest opinion?
> >
> >Are you asking me out?  If so I have to tell you I don't date
> >creatures with green scaly skin who live under bridges.
> 
> I pointed out a flaw in FreeBSD's methodology.
> The fact that it doesn't have one.
> 
> Pointing out a bugger in your nose, at a moment where
> you'd least want one, was a way to perhaps explain things
> with the same level of sarcasm you've given me.

Thing got surprisingly out of hand.   Unless there were some private
messages passed back and forth that did not make it on the list, I
don't think anything in earlier posts from any side of this noise
warranted the flames that seemed to leap out.Everyone around gets 
boogers now and then.   I save mine for when I really need them.

But, I still don't understand your comments on methodology and fundamentals.
They don't seem to relate to anything.FreeBSD is UNIX and does things
in a UNIX way.   I guess that is a methodology.   It is created and supported
by volunteers who use it themselves and make it freely available to others.
There is a very well managed system for development and modification with 
regular and fairly efficient procedure to submit and approve fixes and new 
features.  Changes to the system are vetted much better than most others, 
including other OS systems as well as unnamed commercial systems.  There is 
pretty good, maybe not perfect, management of versions.

These are FreeBSD fundamentals.

So, maybe would a change to advertising supported "reality" entertainment 
instead of producing a reliable operating system meet your requirement
for a change in fundamentals?It is certainly hard to tell from what
was posted.   Anyway, I prefer sticking to the fundamentals already
in place.

jerry


> 
> 
> >In case I'm not clear:
> >
> >Your behaviour on this list suggests that you are either an abnormally
> >high-functioning 3-year-old, or you have some other equivalent
> >personality disorder.  If you want to be treated with respect, start
> >acting in a manner that is deserving of it.
> 
> Show me some proof and I'll gladly give you an explanation why things
> turned out that way. This is just plain harassment; what if I have a
> personality disorder, is this your way of trying to hit me where it hurts?
> 
> If I want respect, I certainly won't look for it in here.
> 
> 
> >That means not throwing temper tantrums or making absurd threats every
> >time someone suggests that perhaps you don't know everything, or when
> >you don't get the level of help that you want, and then coming right
> >back and asking for more help.  You can't have it both ways.
> 
> Somehow I think YOU are the one who are acting childish and emotional.
> 
> I'd appreciate it if you'd refrain from your attempts to further ridicule me.
> 
> In return, I'll think twice before posting another e-mail.
> 
> 
> >Kris
> >
> 
> 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ASCII files becoming double lined

2006-03-30 Thread Vaaf

At 19:49 30.03.2006, [EMAIL PROTECTED] wrote:

well i am sure that you would have saved everybody ( including
yourself ) a hell of a lot of time if you had called these guys:
www.bsdconsulting.no

or is that a risk you can't take either? ( or is bsdconsulting.no
you?, then all bets are off )


Are you trying to advertise for a friend of yours here?



i don't know why i am doing this. i have a very hard time
understanding your brutality towards people who obviously have tried
very hard to help you.


What thread are you referring to here?

I love those who helped me.
As long as the last word they say isn't:

Ok you're an idiot, you didn't do what I say even though
you claim to do what I told you to do. Things still don't work?
Obviously you didn't do what I told you to do.



and then you go on and ask stooopid (dvd) questions on the list, which
aren't even remotely connected to freebsd. questions which show you
obviously don't know what you are talking about.


The reason I asked it on the FreeBSD questions list was because
I tried the exact same approach on a Linux machine and it worked just
fine there.



i respect those who continue to support, disregarding history or
person. respect.


Are you a much respected person?

Otherwise there's no point in following your advice.



could some fellow norwegian talk some sense into this guy? you guys
must be ashamed, right?


What are they suppose to say?

I'm guessing something along the line of ignoring people like you.



On 3/30/06, Vaaf <[EMAIL PROTECTED]> wrote:
> At 17:58 30.03.2006, Donald J. O'Neill wrote:
> >On Thursday 30 March 2006 09:04, Kris Kennaway wrote:
> > > On Thu, Mar 30, 2006 at 04:59:36PM +0200, Vaaf wrote:
> > > > Hello!
> > > >
> > > > Sometimes I notice ASCII files becoming double lined.
> > > > As in there somehow appearing an empty line in between every line.
> > > >
> > > > Why is this? And:
> > > >
> > > > 01 How can I detect files with double lines?
> > > > 02 And then eliminate this double lining?
> > >
> > > Haha, what makes you think you can troll the mailing list one day and
> > > then ask for help the next?  Go away, silly person.
> > >
> > > Kris
> >
> >I'm not sure, but I think his most useful purpose is providing comic
> >relief for the list.
> >
> >On the face of it Kris, you're comment to him isn't much, but I keep
> >laughing about it. Just think, all this comedy comes from one person.
> >One person who can't successfully do a buildworld sequence, even with
> >all the advice he's received on this list.
> >
> >What can I say
> >
> >Don
>
> Whatever. You guys asked for root password, that's a risk I can't take.
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"

>


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ASCII files becoming double lined

2006-03-30 Thread Vaaf

At 19:38 30.03.2006, Kris Kennaway wrote:

On Thu, Mar 30, 2006 at 05:45:11PM +0200, Vaaf wrote:

> As for Mr. Kennaway, if you had a big bugger up your nose the minute
> you're about
> to go on a date, wouldn't you like an honest opinion?

Are you asking me out?  If so I have to tell you I don't date
creatures with green scaly skin who live under bridges.


I pointed out a flaw in FreeBSD's methodology.
The fact that it doesn't have one.

Pointing out a bugger in your nose, at a moment where
you'd least want one, was a way to perhaps explain things
with the same level of sarcasm you've given me.



In case I'm not clear:

Your behaviour on this list suggests that you are either an abnormally
high-functioning 3-year-old, or you have some other equivalent
personality disorder.  If you want to be treated with respect, start
acting in a manner that is deserving of it.


Show me some proof and I'll gladly give you an explanation why things
turned out that way. This is just plain harassment; what if I have a
personality disorder, is this your way of trying to hit me where it hurts?

If I want respect, I certainly won't look for it in here.



That means not throwing temper tantrums or making absurd threats every
time someone suggests that perhaps you don't know everything, or when
you don't get the level of help that you want, and then coming right
back and asking for more help.  You can't have it both ways.


Somehow I think YOU are the one who are acting childish and emotional.

I'd appreciate it if you'd refrain from your attempts to further ridicule me.

In return, I'll think twice before posting another e-mail.



Kris



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ASCII files becoming double lined

2006-03-30 Thread Donald J. O'Neill
On Thursday 30 March 2006 11:27, Vaaf wrote:
> At 17:58 30.03.2006, Donald J. O'Neill wrote:
> >On Thursday 30 March 2006 09:04, Kris Kennaway wrote:
> > > On Thu, Mar 30, 2006 at 04:59:36PM +0200, Vaaf wrote:
> > > > Hello!
> > > >
> > > > Sometimes I notice ASCII files becoming double lined.
> > > > As in there somehow appearing an empty line in between every
> > > > line.
> > > >
> > > > Why is this? And:
> > > >
> > > > 01 How can I detect files with double lines?
> > > > 02 And then eliminate this double lining?
> > >
> > > Haha, what makes you think you can troll the mailing list one day
> > > and then ask for help the next?  Go away, silly person.
> > >
> > > Kris
> >
> >I'm not sure, but I think his most useful purpose is providing comic
> >relief for the list.
> >
> >On the face of it Kris, you're comment to him isn't much, but I keep
> >laughing about it. Just think, all this comedy comes from one
> > person. One person who can't successfully do a buildworld sequence,
> > even with all the advice he's received on this list.
> >
> >What can I say
> >
> >Don
>
> Whatever. You guys asked for root password, that's a risk I can't
> take.

I don't see anything on here asking for a root password, so you must be 
referring to somewhere else.

I'll tell you what. I wouldn't give out a root password either. I think, 
though, the reason it was asked for was you were proving to be so inept 
that it was wanted so the problem could be fixed and you would stop 
with your shenanigans on that issue.

If you would use the suggestions given, so you have a base to work from, 
you could then figure out how to put it in a script and run the script 
to your hearts content. But until you have that base to work from, a 
whole lot of you're scripts aren't going to work the way you want them 
to.

Before you can run, you learn to walk; before you walk, you learn to 
stand; before you stand, you learn to crawl; before you crawl, you 
learn to sit up; before you learn to sit up, you lay there and shit in 
your diapers. I'm not sure exactly were you are, but I know it's not at 
the run stage.

Don
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ASCII files becoming double lined

2006-03-30 Thread usleepless
well i am sure that you would have saved everybody ( including
yourself ) a hell of a lot of time if you had called these guys:
www.bsdconsulting.no

or is that a risk you can't take either? ( or is bsdconsulting.no
you?, then all bets are off )

i don't know why i am doing this. i have a very hard time
understanding your brutality towards people who obviously have tried
very hard to help you.

and then you go on and ask stooopid (dvd) questions on the list, which
aren't even remotely connected to freebsd. questions which show you
obviously don't know what you are talking about.

i respect those who continue to support, disregarding history or
person. respect.

could some fellow norwegian talk some sense into this guy? you guys
must be ashamed, right?

On 3/30/06, Vaaf <[EMAIL PROTECTED]> wrote:
> At 17:58 30.03.2006, Donald J. O'Neill wrote:
> >On Thursday 30 March 2006 09:04, Kris Kennaway wrote:
> > > On Thu, Mar 30, 2006 at 04:59:36PM +0200, Vaaf wrote:
> > > > Hello!
> > > >
> > > > Sometimes I notice ASCII files becoming double lined.
> > > > As in there somehow appearing an empty line in between every line.
> > > >
> > > > Why is this? And:
> > > >
> > > > 01 How can I detect files with double lines?
> > > > 02 And then eliminate this double lining?
> > >
> > > Haha, what makes you think you can troll the mailing list one day and
> > > then ask for help the next?  Go away, silly person.
> > >
> > > Kris
> >
> >I'm not sure, but I think his most useful purpose is providing comic
> >relief for the list.
> >
> >On the face of it Kris, you're comment to him isn't much, but I keep
> >laughing about it. Just think, all this comedy comes from one person.
> >One person who can't successfully do a buildworld sequence, even with
> >all the advice he's received on this list.
> >
> >What can I say
> >
> >Don
>
> Whatever. You guys asked for root password, that's a risk I can't take.
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ASCII files becoming double lined

2006-03-30 Thread Kris Kennaway
On Thu, Mar 30, 2006 at 05:45:11PM +0200, Vaaf wrote:

> As for Mr. Kennaway, if you had a big bugger up your nose the minute 
> you're about
> to go on a date, wouldn't you like an honest opinion?

Are you asking me out?  If so I have to tell you I don't date
creatures with green scaly skin who live under bridges.

In case I'm not clear:

Your behaviour on this list suggests that you are either an abnormally
high-functioning 3-year-old, or you have some other equivalent
personality disorder.  If you want to be treated with respect, start
acting in a manner that is deserving of it.

That means not throwing temper tantrums or making absurd threats every
time someone suggests that perhaps you don't know everything, or when
you don't get the level of help that you want, and then coming right
back and asking for more help.  You can't have it both ways.

Kris


pgpUmjBPmP6v5.pgp
Description: PGP signature


Re: ASCII files becoming double lined

2006-03-30 Thread Vaaf

At 17:58 30.03.2006, Donald J. O'Neill wrote:

On Thursday 30 March 2006 09:04, Kris Kennaway wrote:
> On Thu, Mar 30, 2006 at 04:59:36PM +0200, Vaaf wrote:
> > Hello!
> >
> > Sometimes I notice ASCII files becoming double lined.
> > As in there somehow appearing an empty line in between every line.
> >
> > Why is this? And:
> >
> > 01 How can I detect files with double lines?
> > 02 And then eliminate this double lining?
>
> Haha, what makes you think you can troll the mailing list one day and
> then ask for help the next?  Go away, silly person.
>
> Kris

I'm not sure, but I think his most useful purpose is providing comic
relief for the list.

On the face of it Kris, you're comment to him isn't much, but I keep
laughing about it. Just think, all this comedy comes from one person.
One person who can't successfully do a buildworld sequence, even with
all the advice he's received on this list.

What can I say

Don


Whatever. You guys asked for root password, that's a risk I can't take. 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ASCII files becoming double lined

2006-03-30 Thread Jerry McAllister
> 
> At 17:20 30.03.2006, Jerry McAllister wrote:
> > >
> > >
> > > Hello!
> > >
> > > Sometimes I notice ASCII files becoming double lined.
> > > As in there somehow appearing an empty line in between every line.
> > >
> > > Why is this? And:
> > >
> > > 01 How can I detect files with double lines?
> > > 02 And then eliminate this double lining?
> >
> >Check out tr(1)
> >It will quite easily remove the extra CR in every line.
> >Then, if you need, you can rename the clean file to the dirty file
> >   something like:   # tr -d "\r" < dirtyfile > cleanfile
> > # mv cleanfile dirtyfile
> >
> >Sorry, it takes two steps.
> >Thre are other methods that do it without a second file, but
> >for newbies, this is easier to understand.
> >
> >jerry
> >
> > >
> > > The goal would be to apply 01 and 02 to this script:
> > >
> > > #!/usr/local/bin/bash
> > > #
> > > #   Remove CRLF, trailing whitespace and blank lines.
> > > #   $MARBEJA: clean.sh,v 1.0 2007/11/11 15:09:05 awad Exp $
> > > #
> > >
> > > for file in `find -s . -type f`; do
> > >
> > >   if file -b "$file" | grep -q 'text'; then
> > >
> > >   echo >> "$file"
> > >
> > >   tr -d '\r' < "$file" \
> > >   | sed -E -e 's/[[:space:]]+$//' \
> > >   | cat -s - > "${file}.tmp" && mv -f "${file}.tmp" "$file"
> > >
> > >   echo "$file: Done"
> > >
> > >   fi
> > >
> > > done
> > >
> > > Thanks,
> > > Vaaf
> > >
> 
> Thanks Jerry! But isn't this what my script already does?

Guess so.  I didn't read that

jerry

> 
> As for Mr. Kennaway, if you had a big bugger up your nose the minute 
> you're about
> to go on a date, wouldn't you like an honest opinion?
> 
> Vaaf
> 
> 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ASCII files becoming double lined

2006-03-30 Thread Donald J. O'Neill
On Thursday 30 March 2006 09:04, Kris Kennaway wrote:
> On Thu, Mar 30, 2006 at 04:59:36PM +0200, Vaaf wrote:
> > Hello!
> >
> > Sometimes I notice ASCII files becoming double lined.
> > As in there somehow appearing an empty line in between every line.
> >
> > Why is this? And:
> >
> > 01 How can I detect files with double lines?
> > 02 And then eliminate this double lining?
>
> Haha, what makes you think you can troll the mailing list one day and
> then ask for help the next?  Go away, silly person.
>
> Kris

I'm not sure, but I think his most useful purpose is providing comic 
relief for the list. 

On the face of it Kris, you're comment to him isn't much, but I keep 
laughing about it. Just think, all this comedy comes from one person. 
One person who can't successfully do a buildworld sequence, even with 
all the advice he's received on this list. 

What can I say

Don
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ASCII files becoming double lined

2006-03-30 Thread Vaaf

At 17:20 30.03.2006, Jerry McAllister wrote:

>
>
> Hello!
>
> Sometimes I notice ASCII files becoming double lined.
> As in there somehow appearing an empty line in between every line.
>
> Why is this? And:
>
> 01 How can I detect files with double lines?
> 02 And then eliminate this double lining?

Check out tr(1)
It will quite easily remove the extra CR in every line.
Then, if you need, you can rename the clean file to the dirty file
  something like:   # tr -d "\r" < dirtyfile > cleanfile
# mv cleanfile dirtyfile

Sorry, it takes two steps.
Thre are other methods that do it without a second file, but
for newbies, this is easier to understand.

jerry

>
> The goal would be to apply 01 and 02 to this script:
>
> #!/usr/local/bin/bash
> #
> #   Remove CRLF, trailing whitespace and blank lines.
> #   $MARBEJA: clean.sh,v 1.0 2007/11/11 15:09:05 awad Exp $
> #
>
> for file in `find -s . -type f`; do
>
>   if file -b "$file" | grep -q 'text'; then
>
>   echo >> "$file"
>
>   tr -d '\r' < "$file" \
>   | sed -E -e 's/[[:space:]]+$//' \
>   | cat -s - > "${file}.tmp" && mv -f "${file}.tmp" "$file"
>
>   echo "$file: Done"
>
>   fi
>
> done
>
> Thanks,
> Vaaf
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"

>


Thanks Jerry! But isn't this what my script already does?

As for Mr. Kennaway, if you had a big bugger up your nose the minute 
you're about

to go on a date, wouldn't you like an honest opinion?

Vaaf

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ASCII files becoming double lined

2006-03-30 Thread Jerry McAllister
> 
> 
> Hello!
> 
> Sometimes I notice ASCII files becoming double lined.
> As in there somehow appearing an empty line in between every line.
> 
> Why is this? And:
> 
> 01 How can I detect files with double lines?
> 02 And then eliminate this double lining?

Check out tr(1)
It will quite easily remove the extra CR in every line.
Then, if you need, you can rename the clean file to the dirty file
  something like:   # tr -d "\r" < dirtyfile > cleanfile
# mv cleanfile dirtyfile

Sorry, it takes two steps.
Thre are other methods that do it without a second file, but
for newbies, this is easier to understand.

jerry

> 
> The goal would be to apply 01 and 02 to this script:
> 
> #!/usr/local/bin/bash
> #
> #   Remove CRLF, trailing whitespace and blank lines.
> #   $MARBEJA: clean.sh,v 1.0 2007/11/11 15:09:05 awad Exp $
> #
> 
> for file in `find -s . -type f`; do
> 
>   if file -b "$file" | grep -q 'text'; then
> 
>   echo >> "$file"
> 
>   tr -d '\r' < "$file" \
>   | sed -E -e 's/[[:space:]]+$//' \
>   | cat -s - > "${file}.tmp" && mv -f "${file}.tmp" "$file"
> 
>   echo "$file: Done"
> 
>   fi
> 
> done
> 
> Thanks,
> Vaaf
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ASCII files becoming double lined

2006-03-30 Thread Kris Kennaway
On Thu, Mar 30, 2006 at 04:59:36PM +0200, Vaaf wrote:
> 
> Hello!
> 
> Sometimes I notice ASCII files becoming double lined.
> As in there somehow appearing an empty line in between every line.
> 
> Why is this? And:
> 
> 01 How can I detect files with double lines?
> 02 And then eliminate this double lining?

Haha, what makes you think you can troll the mailing list one day and
then ask for help the next?  Go away, silly person.

Kris


pgpSTsYyOYHa6.pgp
Description: PGP signature


ASCII files becoming double lined

2006-03-30 Thread Vaaf


Hello!

Sometimes I notice ASCII files becoming double lined.
As in there somehow appearing an empty line in between every line.

Why is this? And:

01 How can I detect files with double lines?
02 And then eliminate this double lining?

The goal would be to apply 01 and 02 to this script:

#!/usr/local/bin/bash
#
#   Remove CRLF, trailing whitespace and blank lines.
#   $MARBEJA: clean.sh,v 1.0 2007/11/11 15:09:05 awad Exp $
#

for file in `find -s . -type f`; do

if file -b "$file" | grep -q 'text'; then

echo >> "$file"

tr -d '\r' < "$file" \
| sed -E -e 's/[[:space:]]+$//' \
| cat -s - > "${file}.tmp" && mv -f "${file}.tmp" "$file"

echo "$file: Done"

fi

done

Thanks,
Vaaf

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"