Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

debian-user-digest Digest V2007 #2276

From: <debian-user-digest-request(at)lists.debian.org>
Date: Wed Aug 29 2007 - 18:39:13 EDT


Content-Type: text/plain

debian-user-digest Digest Volume 2007 : Issue 2276

Today's Topics:

  Re: Strange 224.0.0.251 address bein  [ Nigel Henry  ]
  Re: WYSIWYG editor                    [ Nyizsnyik Ferenc  ]
  Re: WYSIWYG editor                    [ Robert Cates  ]
  Re: Strange 224.0.0.251 address bein  [ Joey Hess  ]
  Re: Strange 224.0.0.251 address bein  [ Sven Joachim  ]
  Re: capture real audio stream         [ cothrige  ]
  Re: capture real audio stream         [ bob@proulx.com (Bob Proulx) ]
  Re: konsole + system bell             [ "Douglas A. Tutty"  ]
  Re: Editing a text file with sed      [ Richard Lyons 

Date: Wed, 29 Aug 2007 22:37:56 +0200
From: Nigel Henry <cave.dnb@tiscali.fr>
To: debian-user@lists.debian.org
Subject: Re: Strange 224.0.0.251 address being accessed on bootup

Message-Id: <200708292237.57398.cave.dnb@tiscali.fr>
Content-Disposition: inline
Content-Type: text/plain;

  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

On Wednesday 29 August 2007 03:27, Douglas A. Tutty wrote:
> On Tue, Aug 28, 2007 at 11:50:14PM +0200, Nigel Henry wrote:
> > Any comments, suggestions, and including "go and get a life", welcome.
> >
> > This is no big deal, but would be nice to resolve this problem.
>
> So its a script in /etc/network/ip-up.d? That would be run by the
> networking stuff and you don't want to play with that.
>
> To disable the actual script, put an exit -1 in after the shebang before
> it actually does anything. By using -1, something that calls the script
> should log an error somewhere that you can then trace. Use exit 0 to
> just return 'success'.
>
> I wouldn't tell you to "go and get a life". You've got a properly
> installed debian package that is spitting out unwanted net traffic. To
> me that's a big deal and worth a talk with the maintainer.
>
> Doug.

A big Oops on my part.

I looked at the bootlog today, and just after "Entering runlevel 2" the script is run, as below.

Wed Aug 29 13:47:21 2007: INIT: Entering runlevel: 2
Wed Aug 29 13:47:21 2007: Starting system log daemon: syslogd.
Wed Aug 29 13:47:21 2007: Starting kernel log daemon: klogd.
Wed Aug 29 13:47:21 2007: Starting portmap daemon...Already running..
Wed Aug 29 13:47:21 2007: Starting Common Unix Printing System: cupsd.
Wed Aug 29 15:47:22 2007: Starting system message bus: dbus.
Wed Aug 29 15:47:23 2007: Starting Hardware abstraction layer: hald.
Wed Aug 29 15:47:30 2007: Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Wed Aug 29 15:47:30 2007: Starting DirMngr: dirmngr.
Wed Aug 29 15:47:31 2007: Starting internet superserver: inetd.
Do you need help?X

Ho hum. I now look in /etc/rc2.d thro rc5.d, and there are no links for the avahi-daemon. It appears that some time in the past, as a newbie to Debian, I deleted the "S" links for the avahi-daemon, thinking that would prevent the script being run in /etc/init.d. It obviously didn't work, and appears that if a script is in /etc/init.d, and there are no links to it in the runlevel directories, the script is run anyway.

Next I re-create the links (twice). Ist time I do them as: ln -s /etc/init.d/avahi-daemon /etc/rc2.d/K16avahi-daemon The same for the other runlevels, but a reboot still has the messages showing the script is running. I see that the other links are ../init.d rather than /etc/init.d, so redo the links. Another reboot, and the messages are still there. The output of ps auxw shows as below after the reboot.

avahi 4480 0.0 0.1 2692 1380 ? Ss 17:30 0:00 avahi-daemon: running [debian.local]
avahi 4481 0.0 0.0 2556 468 ? Ss 17:30 0:00 avahi-daemon: chroot helper

If I stop the daemon with /etc/init.d/avahi-daemon stop, then restart it, ps auxw shows no entries for it.

I stop the avahi-daemon again, and go into sysv-rc-conf, and enable avahi for runlevels 2 thro 5. I check /etc/rc2.d, and now have "S84avahi-daemon". The daemon should be started now, but an ifdown eth0, then an ifup eth0, results in no messages pointing to IP 224.0.0.251.

It appears that the links I recreated from /etc/rcx.d pointing to ../init.d arn't working. I'm losing the plot a bit now.

Renaming avahi-daemon in /etc/init.d has fixed it, and it's no longer started, but isn't the answer.

Shutting down before rebooting with the renamed daemon, I saw flying by, something that appeared to say, referring to avahi, something about bad link, but I can't find it in dmesg. This may be referring to the recreated links I'd made in /etc/rcx.d.

Do you need more help?X

Rooting around in /var/log, I find this in daemon.log:

Aug 28 20:47:33 debian ntpd[4692]: kernel time sync enabled 0001 Aug 28 21:30:34 debian avahi-daemon[4484]: Interface eth0.IPv4 no longer relevant for mDNS.
Aug 28 21:30:34 debian avahi-daemon[4484]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.0.7. Aug 28 21:30:34 debian avahi-daemon[4484]: Withdrawing address record for 192.168.0.7 on eth0.
Aug 28 21:31:09 debian avahi-daemon[4484]: New relevant interface eth0.IPv4 for mDNS.
Aug 28 21:31:09 debian avahi-daemon[4484]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.0.7. Aug 28 21:31:09 debian avahi-daemon[4484]: Registering new address record for 192.168.0.7 on eth0.

Aug 28 21:31:11 debian ntpdate[29752]: the NTP socket is in use, exiting
Can we help you?X
Aug 28 21:40:43 debian avahi-daemon[4484]: Got SIGTERM, quitting. Aug 28 21:40:43 debian avahi-daemon[4484]: Leaving mDNS multicast group on
interface eth0.IPv4 with address 192.168.0.7. Aug 28 21:41:20 debian ntpd[4692]: sendto(192.168.0.230) (fd=21): Network is unreachable
Aug 28 21:41:34 debian ntpdate[3030]: the NTP socket is in use, exiting
Aug 28 21:46:02 debian init: Switching to runlevel: 6
Aug 28 21:46:07 debian ntpd[4692]: ntpd exiting on signal 15
Aug 28 21:48:12 debian ntpdate[4012]: step time server 192.168.0.230 offset 
-0.502414 sec
Aug 28 21:48:22 debian avahi-daemon[4488]: Found user 'avahi' (UID 106) and group 'avahi' (GID 111).
Aug 28 21:48:22 debian avahi-daemon[4488]: Successfully dropped root privileges.
Aug 28 21:48:22 debian avahi-daemon[4488]: avahi-daemon 0.6.16 starting up.
Aug 28 21:48:22 debian avahi-daemon[4488]: Successfully called chroot().
Aug 28 21:48:22 debian avahi-daemon[4488]: Successfully dropped remaining 
capabilities.
Aug 28 21:48:22 debian avahi-daemon[4488]: No service found in /etc/avahi/services.
Aug 28 21:48:22 debian avahi-daemon[4488]: New relevant interface eth0.IPv4 for mDNS.
Aug 28 21:48:22 debian avahi-daemon[4488]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.0.7. Aug 28 21:48:22 debian avahi-daemon[4488]: Network interface enumeration completed.
Aug 28 21:48:22 debian avahi-daemon[4488]: Registering new address record for 192.168.0.7 on eth0.
Aug 28 21:48:22 debian avahi-daemon[4488]: Registering HINFO record with values 'I686'/'LINUX'.
Aug 28 21:48:23 debian avahi-daemon[4488]: Server startup complete. Host name is debian.local. Local service cookie is 3493426229. Aug 28 21:48:27 debian ntpd[4659]: ntpd 4.2.2p4@1.1585-o Sun Mar 4 13:21:35 UTC 2007 (1) Is there anything in the above stuff that rings any bells as to why I'm having such a problem in disabling avahi? 3 lines up I see a mention of "debian.local" . I saw this also on the ps auxw output which is a few lines further up this message.

As mentioned above, I can disable the daemon by renaming it, and it won't start, but it would be nice to resolve the problem in the proper way, rather than my hack of renaming avahi-daemon in /etc/init.d.

I've been on this for about 8 hrs today, on, and off. Neglected taking my doggie for walkies in the sunshine, and playing with his stick.

Nevermind. Tomorrows another day, and if it's fine the dog (Rizla) get's the attention, not the infernal machine.

Before closing this post, and I've still got tail -f /var/log/messages running. I keep getting every 20 mins "debian -- MARK --" . What's that all about?

As usual very gratefull for any help that comes from the list.

Nigel.

Can't find what you're looking for?X

Date: Wed, 29 Aug 2007 22:45:29 +0200
From: Nyizsnyik Ferenc <nyizsa@bluebottle.com> To: debian-user@lists.debian.org
Subject: Re: WYSIWYG editor

Message-ID: <20070829224529.3af6ad07@localhost.localdomain>
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Wed, 29 Aug 2007 20:17:45 +0200
"Manon Metten" <manon.metten@gmail.com> wrote:

> Hi,
>
> On 8/28/07, Loeghmon T. Nejad <loeghmon@gmail.com> wrote:
>
> What do you recommend as a good, practical WYSIWYG editor for creating
> > simple web pages, with mostly text, some graphics and pdf, for
> > debian Lenny please? Thanks.
>
>
>
> You could use Quanta +. Pressing 2 will load the page you just edited
> in Opera;
> Ctr+Shift+F12 in Firefox, F12 in Konqueror; Mozilla in Shift+F12;
> Netscape in Shift+F6;

In Bluefish, there is a "View in browser" button which you can configure, and it's also possible to add options for other browsers. I think it's quite useful for editing HTML, PHP, JSP pages and many more.

> OTOH, you should always be aware that what the end user sees, depends
> heavily on
> his/her settings. Do never expect your page to look exactly the same
> as on your system.
>
> Check out this link: http://htmlhelp.com/
>
> Here's the intro from there website:
> "The Web Design Group was founded to promote the creation of
> non-browser specific, non-resolution specific, creative and
> informative sites that are accessible to all users worldwide. To this
> end, the WDG offers material on a wide range of HTML related topics.
> We hope that with this site as a reference, you will be able to
> create Web sites that can be used by every person on the Internet,
> regardless of browser, platform, or settings."
>
> Manon.

-- 
Szia:
		Nyizsa.

----------------------------------------------------------------------
Finally - A spam blocker that actually works.
http://www.bluebottle.com/tag/4

Date: Wed, 29 Aug 2007 23:09:07 +0200 From: Jochen Schulz <ml@well-adjusted.de> To: debian-user@lists.debian.org Subject: Re: Migrate debian services to a new debian system Message-ID: <20070829210907.GH4180@wasteland.homelinux.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q6STzHxy03qt/hK9" Content-Disposition: inline --Q6STzHxy03qt/hK9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable syn4coXis10s@gmail.com:
>=20
> Okay, so I want to make the asrock my server...it is quieter and uses
> less power. I don't have a lot of time for trouble shooting etc. so I
> want to plan this out so it mostly works on the first shot. My
> strategy is to setup each services one at a time...then transfer to
> the new system and disable it on the old.
If I were you, I'd just install a stock Debian kernel on the server (if it doesn't already have one) and swap the hard drives between the two machines. That might already do it. J. --=20 My memories gild my life with rare transcendance. [Agree] [Disagree] <http://www.slowlydownward.com/NODATA/data_enter2.html> --Q6STzHxy03qt/hK9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFG1eBy+AfZydWK2zkRAq6FAJ9vzLzPDoMxCTJKBoFo7cscxwsGRACdGvTJ FfCahcQNFWRJaAIhjwLEJW4= =Qm12 -----END PGP SIGNATURE----- --Q6STzHxy03qt/hK9--

Date: Wed, 29 Aug 2007 22:59:06 +0200 From: Robert Cates <robert@kormar.de> To: debian-user@lists.debian.org Subject: Re: WYSIWYG editor Message-ID: <46D5DE1A.7090508@kormar.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit David Baron wrote:
>> Actually WYSIWYG is VERY BAD for web page creation. People can resize their
>> windows etc - and then what? All your WYSIWYG has gone to waste. In
>> addition your WYSIWYG is probably not even rendering the same as your
>> favorite browsers.
>>
>> As annoying as it may be at the start, the best way is probably to edit
>> with a text editor and have a browser (or several browsers) rendering the
>> file.
>>
>
> Yup. I had a short-lived job once cutting and pasting various entries into
> pre-existing web pages. They insisted upon Dreamweaver. Then the stuff simply
> looked awful or out of place in the browser.
>
> Whatever tool one uses (Nvu is a nice opensource tool!), one MUST test pages,
> their scripts and forms and all, in several browsers. IE, Firefox/Mozilla
> varients, Opera, Dillo, Konqueror, etc. It is surprizing after all the
> development that has gone into these things that no two work the same and no
> one works 100% with the javascript or whatever. Pain in the butt.
>
>
>
>
>
Though I also try to compose with most all browsers in mind, it's only a pain if you're trying to please ALL visitors. The (unfortunate?) truth of the matter is though, that Internet Explorer (IE6 and now IE7) are still the browsers used by most of the visitors out there, with Firefox coming in a distant 2nd place. So developing a web page/site is a bit easier keeping that in mind. Here's one web site with browser statistics - http://www.w3schools.com/browsers/browsers_stats.asp Robert

Don't know where to look next?X

Date: Wed, 29 Aug 2007 17:19:28 -0400 From: Joey Hess <joeyh@debian.org> To: debian-user@lists.debian.org Subject: Re: Strange 224.0.0.251 address being accessed on bootup Message-ID: <20070829211928.GC25860@kitenet.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="w7PDEPdKQumQfZlR" Content-Disposition: inline --w7PDEPdKQumQfZlR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Nigel Henry wrote:
> It obviously didn't work, and appears that=20
> if a script is in /etc/init.d, and there are no links to it in the runlev=
el=20
> directories, the script is run anyway.
I think that avahi may be started by /etc/network/if-up.d/avahi-daemon, when a network interface is brought up. I'd suggest editing /etc/default/avahi-daemon. BTW, there's a persuasive argument that wanting to disable avahi/mDNS to improve your system's security is similar to wanting to disable DNS or DHCP to improve your systems's security. <http://0pointer.de/blog/projects/zeroconf-ubuntu> --=20 see shy jo --w7PDEPdKQumQfZlR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFG1eLgd8HHehbQuO8RAmJOAKC3UEc4N9mK9lzM2fBsIAmUr83Z7gCeK+gs KAkpYXkElI5aWJMsovUcUrM= =/ctg -----END PGP SIGNATURE----- --w7PDEPdKQumQfZlR--

Date: Wed, 29 Aug 2007 22:52:26 +0200 From: Sven Joachim <svenjoac@gmx.de> To: debian-user@lists.debian.org Subject: Re: Strange 224.0.0.251 address being accessed on bootup Message-ID: <87tzqi83n9.fsf@gmx.de> Content-Type: text/plain; charset=us-ascii Nigel Henry <cave.dnb@tiscali.fr> writes:
> Before closing this post, and I've still got tail -f /var/log/messages
> running. I keep getting every 20 mins "debian -- MARK --" . What's that all
> about?
It's only the syslogd who tells you that it is alive and kickin', see syslogd(8). Sven

Date: Wed, 29 Aug 2007 16:24:10 -0500 From: cothrige <cothrige@bellsouth.net> To: debian-user@lists.debian.org Subject: Re: capture real audio stream Message-ID: <87zm0at4p1.fsf@celephais.home.net> Content-Type: text/plain; charset=us-ascii Lorenzo Bettini <bettini@dsi.unifi.it> writes:
>
> well that somehow makes me feel better, 'cause I was starting to feel
> stupid since I wasn't able to find no such links ;-)
>
If you go to the home page for BBC radio 2 and click on Listen at the top right, you will see the "Listen using stand-alone Real Player" link on the left hand side. That is the link I had expected on the player used for Listen again, and it does seem odd that it exists on one player and not the other. Maybe BBC has a policy about listen again since it is effectively "play on demand" where the live player requires you stream in real time just when it happens to be on? There is also a disclaimer of sorts on the BBC Radio 2 pages saying that the listen again player is having some difficulties. Maybe this is one? I am inclined to think that is not the case though, and likely it is intentional and has to do with the perceived difference of listen again and live playing.
> I'm trying the link you provided with the command
>
> mplayer
> "rtsp://rmv8.bbc.net.uk/radio2/fridaymusic.ra?BBC-UID=a426cbda207670378b86528c714caba3684a2b4fc040b101329203b36444a5b5&SSO2-UID='"
> -vo null -vc null -ao pcm:file=/mnt/appo/musica/webber.wav
>
> and it seems to work fine! :-)
Glad to hear. It has always served me fine. BTW, the only reason I have not been prone to using dumpstream as I know others do is that for some reason a while back I would get a mysterious failure that way and mplayer would quit midstream. I really don't know why, but using '-ao pcm..." has not had that problem as often, though I have run into it from time to time.
>
> by the way, isn't there a way to record directly in mp3 I suppose?
I suppose it may be possible, but I have never tried. I always clean up the resulting file anyway. The files that mplayer records this way are almost always quite a bit longer than the actual item being recorded, and so I like to trim off the extra stuff on the ends, and I use either audacity or sox to do that. Wavs mean not having to uncompress and recompress the stream which keeps it from degrading. I also like to normalize it and while it can be done with mp3 it doesn't work on most players and so I do that to the wav and then compress it to ogg or mp3.
>> I do hope this is not the way that the BBC Radio people will be doing
>> things everywhere, as it is certainly a great deal less convenient.
>
> Later I'll try with epiphany too... but why are you saying that it is
> due to a broken install of epiphany?
Opera and Firefox (Iceweasel) just play the file in a hidden and seamless way, which is obviously what should happen. That makes it hard to know what is being played but it does seem the expected behaviour. Epiphany, on the other hand, fails and so alerts me to that and tells me the full name of the file in so doing. Good for us, but since the file doesn't play it means that the plugins for realplay are not present and working and neither is totem (which is what epiphany is trying to open the file with.) So, something in there does seem broken right now, though that is actually a good thing. It makes me wonder if I moved realplay would that make the other browsers alert me similarly? Just a thought if I were desperate. Patrick

Date: Wed, 29 Aug 2007 15:25:51 -0600 From: bob@proulx.com (Bob Proulx) To: debian-user@lists.debian.org Subject: Re: capture real audio stream Message-ID: <20070829212551.GA12042@dementia.proulx.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Lorenzo Bettini wrote:
> I'm trying the link you provided with the command
>
> mplayer
> "rtsp://rmv8.bbc.net.uk/radio2/fridaymusic.ra?BBC-UID=a426cbda207670378b86528c714caba3684a2b4fc040b101329203b36444a5b5&SSO2-UID='"
> -vo null -vc null -ao pcm:file=/mnt/appo/musica/webber.wav
>
> and it seems to work fine! :-)
Note that the BBC-UID parameter is a cookie that enables them to gather statistics about the number of users using their site and things like that. It may be left off entirely and the link will work fine (but without providing them user statistics). Normally a browser would return the same cookie for that browser for the same user when they visit the site again or download other content. In other words it would probably be friendly if everyone avoided using the same cookie. Not providing a cookie I believe would appear as a browser with cookies disabled.
> by the way, isn't there a way to record directly in mp3 I suppose?
Not presently, at least not that mplayer allows. The best that can be done AFAICT is to dump to a pipe and to encode to ogg from the pipe in parallel. I have seen references to an "mplayer-stdout" but have not been able to capture it yet. I use the dump-to-a-named-pipe method and then encode to ogg in parallel.
> cothrige wrote:
> >I do hope this is not the way that the BBC Radio people will be doing
> >things everywhere, as it is certainly a great deal less convenient.
Agreed. Bob

Date: Wed, 29 Aug 2007 21:35:42 +0000 From: "Douglas A. Tutty" <dtutty@porchlight.ca> To: debian-user@lists.debian.org Subject: Re: konsole + system bell Message-ID: <20070829213542.GA12634@titan.hooton> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 29, 2007 at 12:48:41PM -0500, Hugo Vanwoerkom wrote:
> Douglas A. Tutty wrote:
>
> >Unfortunatly for you, the computer that I'm directly attached to me is
> >on the floor below (monitor, keyboard, and mouse cables run through the
> >floor) so I can only hear the beep if the room is quiet. It is noisy
> >right now. Perhaps you will have some luck.
>
> That's an interesting hookup: I'd like that, but where do you get the
> mon/mouse/kbd cables that long? I'd put the noise in the next room here :-)
>
10' extension cords. The box in on a shelf half-way up the wall directly below my mini-desk in the living room. Makes for a totally silent operation even though the hostname on the box is 'rocky' since its fan sounds like a gravel truck. Its a P-II given away because if was full (as in packed) of cat hair; messed up the CPU fan bearings among other things. Doug.

Date: Wed, 29 Aug 2007 21:38:44 +0000 From: "Douglas A. Tutty" <dtutty@porchlight.ca> To: debian-user@lists.debian.org Subject: Re: docBook or latex Message-ID: <20070829213844.GB12634@titan.hooton> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 29, 2007 at 09:06:25PM +0200, Vincent Lefevre wrote:
> On 2007-08-27 20:35:36 -0500, Russell L. Harris wrote:
> > After trying every converter I could find, I discovered HeVeA. HeVeA
> > takes LaTeX files and produces beautiful HTML, with much less hassle
> > than any of the other solutions which I found. HeVeA handles LaTeX
> > documents with complex formatting, including footnotes; it appears to
> > be in a category by itself. HeVeA comes with an excellent manual.
>
> HeVeA only works with standard classes:
>
> vin:~/wd/tex> hevea wcinverse.tex
> ./wcinverse.tex:1: Warning: Cannot open file: vlart.hva
> Giving up command: \documentclass
> ./wcinverse.tex:1: Error while reading LaTeX:
> No base style
> Adios
>
> As almost all of my LaTeX files use non-standard classes, hevea is
> unusable.
>
Try tex4ht. Makes html, docbook, +? Doug.

Date: Wed, 29 Aug 2007 23:47:37 +0200 From: Nigel Henry <cave.dnb@tiscali.fr> To: debian-user@lists.debian.org Subject: Re: Strange 224.0.0.251 address being accessed on bootup Message-Id: <200708292347.37708.cave.dnb@tiscali.fr> Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit On Wednesday 29 August 2007 22:52, Sven Joachim wrote:
> Nigel Henry <cave.dnb@tiscali.fr> writes:
> > Before closing this post, and I've still got tail -f /var/log/messages
> > running. I keep getting every 20 mins "debian -- MARK --" . What's that
> > all about?
>
> It's only the syslogd who tells you that it is alive and kickin', see
> syslogd(8).
>
> Sven
Thanks Sven. Much appreciated. One query resolved. Nigel.

Date: Wed, 29 Aug 2007 22:53:55 +0100 From: Richard Lyons <richard@the-place.net> To: debian-user@lists.debian.org Subject: Re: Editing a text file with sed Message-ID: <20070829215355.GF14690@the-place.net> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 29, 2007 at 06:33:54PM +0200, Joe Hart wrote:
> On Wednesday 29 August 2007 17:36:38 Kumar Appaiah wrote:
> > On Wed, Aug 29, 2007 at 03:17:46PM +0200, Joe Hart wrote:
> > > <begin 1.txt>
> > > This is a test
> > > file, what I am
> > > trying to do is get the lines to join.
> > >
> > > It isn't a complicated thing,
> > > but I also want to keep the paragraphs
> > > separate.
> > > </end 1.txt>
> >
> > [snip]
> >
> > > But ideally I'd like to just have a script to do it, but cannot figure
> > > out how to go about it, as sed doesn't seem to be working.
> >
> > If I run your file through fmt, I get
> > <output>
> > This is a test file, what I am trying to do is get the lines to join.
> >
> > It isn't a complicated thing, but I also want to keep the paragraphs
> > separate.
> > </output>
> >
> > Of course, that may not have been what you were looking for, but I
> > just thought some might find it useful later.
>
> I appreciate the answer, I didn't even know about the fmt command until now.
> It does seem to work in the example, but not on the real file(s) that I am
> working with. Something makes me think that these files have some very
> strange characters in them, but they don't seem to show up when I cat the
> file.
Are they perhaps msdos-formatted? If so does it help to dos2u them first? (If you don't have any better dos2u, use a file containing this: perl -pi -e 's/\r\n/\n/g' $1 or similar. -- richard End of debian-user-digest Digest V2007 Issue #2276 ************************************************** Received on Wed Aug 29 18:33:18 2007

Confused? Frustrated?X

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 07:54:17 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library