Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

debian-user-digest Digest V2007 #2272

From: <debian-user-digest-request(at)lists.debian.org>
Date: Wed Aug 29 2007 - 11:14:46 EDT


Content-Type: text/plain

debian-user-digest Digest Volume 2007 : Issue 2272

Today's Topics:

  Re: Copy ./ to subdirectory.          [ Benjamin A'Lee  ]
  Re: Copy ./ to subdirectory.          [ "Douglas A. Tutty"  ]
  dpkg wont install kbuild (failed to   [ "dan baker"  ]
  Re: fstab and removable usb drives    [ Celejar  ]
  Re: konsole + system bell             [ Takehiko Abe  ]
  Re: Editing a text file with sed      [ Victor Munoz  ]
  Re: Copy ./ to subdirectory.          [ Mike Bird  ]
  Re: MSI nVidia NX7600GT-T2D256E       [ Tim Day  ]
  Re: capture real audio stream         [ cothrige  ]
  make or preprocessor error - ddrescu  [ "Adam W"  ]

Date: Wed, 29 Aug 2007 14:19:27 +0100
From: Benjamin A'Lee <bma+lists@subvert.org.uk> To: James Preece <james@lovingit.co.uk>
Cc: debian-user@lists.debian.org
Subject: Re: Copy ./ to subdirectory.
Message-ID: <20070829131927.GF6476@gilmour.subvert.org.uk> Content-Type: multipart/signed; micalg=pgp-sha1;

        protocol="application/pgp-signature"; boundary="zgY/UHCnsaNnNXRx" Content-Disposition: inline

--zgY/UHCnsaNnNXRx

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Aug 29, 2007 at 01:16:50PM +0100, James Preece wrote:
> This is probably a simple question but I can't find the answer
> anywhere and my friend Google won't search for ./ and 'copy' brings up
> all sorts.

>=20

> Basically, I've got a folder containing various files for a website
> (for simplicity lets say it's this):
>=20

> /mydirectory/index.html
> /mydirectory/images/image.gif
>=20

> I want to make a backup so in the /mydirectory/ folder I do:
>=20

> cp -r ./ backup
>=20

> I wanted his to result in:
>=20

> /mydirectory/index.html
> /mydirectory/images/image.gif
> /mydirectory/backup/index.html
> /mydirectory/backup/images/image.gif
>=20

> Does that make sense? The error I get is:
>=20

> cp: cannot copy a directory, `./', into itself, `backup'
>=20
> Is there a way to have cp ignore the newly created directory? Something l=
ike:
>=20
> cp -r ./ backup --ignore=3Dbackup
Do you need help?X

I usually do:

cp -a ./* ./.* backup/

You'll get an error when it tries to copy backup into itself, but everything else will be copied fine.

        Ben

--zgY/UHCnsaNnNXRx

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
Do you need more help?X

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG1XJfEUZDNrttL6ARAtPBAKDNP0KH90YN68vP26XQalTZSb86hACguud2 U3mlGm4iYIczbIQBiRaKFbc=
=l70s
-----END PGP SIGNATURE----- --zgY/UHCnsaNnNXRx--

Can we help you?X

Date: Wed, 29 Aug 2007 15:17:46 +0200
From: Joe Hart <j.hart@orange.nl>
To: "debian-user" <debian-user@lists.debian.org> Subject: Editing a text file with sed
Message-Id: <200708291517.47097.j.hart@orange.nl> Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I am having trouble using sed to edit text files, heres a good example of what I am looking for:

<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>

I try this command:

sed s/\n// / 1.txt > 2.txt and I get an error, so: sed s'\n/ /' 1.txt > 2.txt and nothing happens.

I don't get it. I though \n was end of line, which I am trying to replace with spaces.

I understand that this would loose the paragraphs, so ideally what I need to do is something like this:

  1. Replace double line breaks with special sequence not found in text.
  2. Convert all line breaks to spaces
  3. Convert special seqeuence to double line breaks.
Can't find what you're looking for?X

I thought sed would be perfect for this, but no such luck. I can get what I want by using kwrite for step 1 and 2, then OO.o Writer for step 3. (kwrite seems unable to do step 3)

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.

Joe

Date: Wed, 29 Aug 2007 13:27:23 +0000
From: "Douglas A. Tutty" <dtutty@porchlight.ca> To: debian-user@lists.debian.org
Subject: Re: Copy ./ to subdirectory.

Message-ID: <20070829132723.GB6919@titan.hooton>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Aug 29, 2007 at 01:16:50PM +0100, James Preece wrote:
> Basically, I've got a folder containing various files for a website
> (for simplicity lets say it's this):
>
> /mydirectory/index.html /mydirectory/images/image.gif
>
> I want to make a backup so in the /mydirectory/ folder I do:
>
> cp -r ./ backup
>
> I wanted his to result in:
>
> /mydirectory/index.html /mydirectory/images/image.gif
> /mydirectory/backup/index.html /mydirectory/backup/images/image.gif
>
> Does that make sense? The error I get is:
>
> cp: cannot copy a directory, `./', into itself, `backup'
>
> Is there a way to have cp ignore the newly created directory?
> Something like:

Unfortuntly, Debian relies on GNU and GNU has changed the licence on the docs to be incompatible with Debian. Notice that the stub of a man pages directs you to info cp, however info cp gives you cpio instead. OOPS. try:
$ mkdir backup
$ cp -r i* backup/

I don't see anything like --ignore in the man page.

Don't know where to look next?X

Personally, for stuff like that I use mc. If I'm writing a script, I'm using Python anyway.

Doug.

Date: Wed, 29 Aug 2007 13:30:17 +0000
From: "Douglas A. Tutty" <dtutty@porchlight.ca> To: debian-user@lists.debian.org
Subject: Re: Debian Etch on MacBook

Message-ID: <20070829133017.GC6919@titan.hooton>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Aug 29, 2007 at 08:28:41PM +0800, Jerome BENOIT wrote:
> Note that MacBooks are amd64 computers: some application (multi-media)
> are not yet well supported: to crunch number it is Ok. Anyhow, you can
> make your box a 32bit box.
>

The only thing that's not supported in amd64 is propriatary stuff like flash player. I watch DVDs just fine on my Athlon64 running Etch amd64. For flash, I have an i386 chroot that has iceweasel and the flash player.

Lenny has a new wrapper thingy that solves this and removes the need for the chroot.

Doug.

Confused? Frustrated?X

Date: Wed, 29 Aug 2007 08:31:53 -0500
From: Ron Johnson <ron.l.johnson@cox.net> To: debian-user@lists.debian.org
Subject: Re: Ping my modem........

Message-ID: <46D57549.9070900@cox.net>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/29/07 06:37, Charlie wrote:
> On Wednesday 29 August 2007 18:41, Ron Johnson shared this with us all:
> <snip>
>

>> --} > This has been solved, Thank you.
>> --} >
>> --} > Jeff had twigged that I didn't have "echo" enabled in my firewall, and
>> that --} > was the fix.
>> --} >
>> --} > You were obviously on the same track.
>> --}
>> --} mtr lets you check hosts that don't otherwise allow pings.  May not
>> --} be relevant in your case.
>> --}
>> --} --
>> --} Ron Johnson, Jr.
>> --} Jefferson LA  USA

>
> Thanks Ron,
>
> I am still learning to use it.

Either I'm a Unix wizard, or it's really pathetically simple to use.

  $ mtr www.cox.net

  $ mtr -r www.cox.net

  $ mtr -n www.cox.net

Call Pantek today for Open Source Technical Support at 1-877-546-8934 - 24/7/365X

  $ mtr 70.168.47.91

There's more, but that'll do 99.5% of what you'll ever need it to do for you.

  • -- Ron Johnson, Jr. Jefferson LA USA

Give a man a fish, and he eats for a day. Hit him with a fish, and he goes away for good!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG1XVJS9HxQb37XmcRArxKAJ442VYx5STUW6UzVocrIqJIhrZIQgCgsOa7 R+2Nob/bZXEgYIzWvb/mjK8=
=VJv3
-----END PGP SIGNATURE-----

Date: Wed, 29 Aug 2007 13:33:40 +0000
From: "dan baker" <kam2700@hotmail.com>
To: debian-user@lists.debian.org
Subject: dpkg wont install kbuild (failed to write to pipe in copy) Message-ID: <BAY123-F3228B35FAAC8E92FD8EF50ADCC0@phx.gbl> Content-Type: text/plain; format=flowed

Sony VGNFE21M
2.6.18-4-686 Etch

I am tryinng to get my wireless card to work. I need to install some kernal headers which have the dependency of Kbuild.

Do you need help?X

When I try installing kbuild I get the following error:

cpc3-seve3-0-0-cust864:~# cd /root/Desktop
cpc3-seve3-0-0-cust864:~/Desktop# dpkg -i 
linux-kbuild-2.6.18_2.6.18-1_i386.deb

(Reading database ... 150369 files and directories currently installed.) Unpacking linux-kbuild-2.6.18 (from linux-kbuild-2.6.18_2.6.18-1_i386.deb) ....
dpkg-deb (subprocess): short read in buffer_copy (failed to write to pipe in copy)
dpkg-deb: subprocess paste returned error exit status 2 dpkg: error processing linux-kbuild-2.6.18_2.6.18-1_i386.deb (--install): short read in buffer_copy (backend dpkg-deb during `./usr/src/linux-kbuild-2.6.18/scripts/mod/modpost.real-lsb-64') Errors were encountered while processing: linux-kbuild-2.6.18_2.6.18-1_i386.deb
cpc3-seve3-0-0-cust864:~/Desktop#

I have tried redownloading the deb file
I can´t use apt get as I have no internet connection I can´t find any bug reports or patches.

What should I do now ?

Thanks

Dan



Got a favourite clothes shop, bar or restaurant? Share your local knowledge http://www.backofmyhand.com

Date: Wed, 29 Aug 2007 09:30:24 -0400
From: Celejar <celejar@gmail.com>
To: debian-user@lists.debian.org
Subject: Re: fstab and removable usb drives

Message-Id: <20070829093024.90c911e0.celejar@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Wed, 29 Aug 2007 10:35:16 +0200
J=F6rg-Volker Peetz <peetz@scai.fraunhofer.de> wrote:

Do you need more help?X

> For removable media take a look at package pmount.

Thanks. I do use pmount.

> Regards,
> J=F6rg-Volker.

Celejar

--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator

Date: Wed, 29 Aug 2007 22:34:56 +0900 From: Takehiko Abe <keke@gol.com> To: debian-user <debian-user@lists.debian.org> Subject: Re: konsole + system bell Message-ID: <46D57600.1040706@gol.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit
> Do you get a bell in a text console? IIRC, there is no longer a beep
> module in the kernel.
I do. The module is pcspkr.ko.

Date: Wed, 29 Aug 2007 09:48:50 -0400 From: Victor Munoz <vmunoz@macul.ciencias.uchile.cl> To: debian-user <debian-user@lists.debian.org> Subject: Re: Editing a text file with sed Message-ID: <20070829134850.GA16799@llacolen.ciencias.uchile.cl> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 29, 2007 at 03:17:46PM +0200, Joe Hart wrote:
>
> I am having trouble using sed to edit text files, heres a good example of what
> I am looking for:
>
> <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>
>
> I try this command:
>
> sed s/\n// / 1.txt > 2.txt and I get an error, so:
> sed s'\n/ /' 1.txt > 2.txt and nothing happens.
>
> I don't get it. I though \n was end of line, which I am trying to replace
> with spaces.
>
sed works line by line, separately. There's an N modifier to make it work across lines. You may check http://www.panix.com/~elflord/unix/sed.html for a nice tutorial, or http://www-h.eng.cam.ac.uk/help/tpl/unix/sed.html for some examples. Regards, Victor

Date: Wed, 29 Aug 2007 15:43:25 +0200 From: Florian Kulzer <florian.kulzer+debian@icfo.es> To: debian-user@lists.debian.org Subject: Re: evince unable to open pdf Message-ID: <20070829134324.GA3490@localhost> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 29, 2007 at 12:09:09 +0000, Douglas A. Tutty wrote:
> On Wed, Aug 29, 2007 at 10:03:07AM +0200, Florian Kulzer wrote:
> > On Tue, Aug 28, 2007 at 14:23:27 +0000, Douglas A. Tutty wrote:
>
> > > Evince itself opens OK, but when I open the file dialog with its default
> > > filter of "All Documents", it doesn't see any. If I remove the filter
> > > to "All Files", it sees the pdfs but when I select one to open, it pops
> > > up an error:
> > >
> > > Unable to open document
> > > Unhandled MIME type 'application/octet-stream'
[...]
> > As far as I understand the MIME-handling business, you need
> > /etc/mime.types (package mime-support) and/or /etc/mime-magic
> > (gnome-libs-data) to ensure identification of the MIME type
> > "application/pdf" (based on the "%PDF-" string at the start of the
> > file).
> >
> > If you have these packages installed and it does not work then you might
> > additionally need gnome-mime-data or shared-mime-info. (This is just a
> > guess, though, based on the package descriptions.)
> >
>
> Thanks Florian.
>
> I have everything except gnome-libs-data (since it brings in all the
> rest of gnome including gnome-bin).
I just ran strace on evince and opened a PDF file. The only "magic" files which evince tried to access were ~/.local/share/mime/magic and /usr/local/share/mime/magic (neither of which is present on my system). Maybe you can generate one of these two files to make evince recognize the PDFs. I have no idea about the required format, therefore I would simply try to use what I see in /usr/share/mime/magic: $ grep -aA1 pdf /usr/share/mime/magic [60:application/pdf] >0=%PDF- There are two non-printing bytes hidden in grep's output above, between the "=" and the "%" sign in the second line: $ grep -aA1 pdf /usr/share/mime/magic | hd -C 00000000 5b 36 30 3a 61 70 70 6c 69 63 61 74 69 6f 6e 2f |[60:application/| 00000010 70 64 66 5d 0a 3e 30 3d 00 05 25 50 44 46 2d 0a |pdf].>0=..%PDF-.| 00000020
> If I have to install the whole GNOME DTE just to use Evince, I chalk it
> up to typical Gnome stupidity and scrapt the whole thing.
>
> The thing is, my installed packages are exactly the same as before I
> reinstalled. The only difference is that 4.0r1 came out while I was in
> the midst of the multi-day downloading (dialup) so some of the packages
> will be newer versions.
Does it help if you run update-mime or update-mime-database manually? -- Regards, | http://users.icfo.es/Florian.Kulzer Florian |

Date: Wed, 29 Aug 2007 10:06:48 -0400 From: Gregory Seidman <gsslist+debian@anthropohedron.net> To: debian-user@lists.debian.org Subject: Re: i686 Port Message-ID: <20070829140647.GB23559@anthropohedron.net> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 28, 2007 at 04:06:10PM +0100, Richard Thompson wrote:
> I was wondering why debian doesn't have a port of packages optimised for
> i686, I realise they have support for i386, which obviously incudes
> everything from an intel 386 to the latest and greatest intel and amd
> processors (running in 32bit), ultimatley the i686 already has 'support'
> however I just thought it would be great if a port was available where
> the packages had been compiled specifically for i686 as I have noticed
> that when I use i686 optimised distro's such as arch, or even slackware
> there is a noticable performance difference.
This comes up on the list from time to time. The general answer is that packages that benefit from processor-specific compilation (e.g. the kernel, Marillat's mplayer "unofficial" packages, etc.) do exist in processor-specific forms. The vast majority of packages, however, do not benefit sufficiently from processor-specific compilation to justify the complication of supporting extra versions of the packages, much less the infrastructure to automatically select the correct package for your processor when using apt.
> Richard Thompson
--Greg

Can we help you?X

Date: Wed, 29 Aug 2007 15:08:58 +0100 From: Richard Lyons <richard@the-place.net> To: debian-user@lists.debian.org Subject: Re: linux on ipod nano? Message-ID: <20070829140858.GC14690@the-place.net> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 29, 2007 at 01:29:00PM +0100, koffiejunkie wrote:
> Richard Lyons wrote:
> >My nano is vfat. It mounts just fine. It is unmounting that is the
> >problem.
>
> I missed the beginning of the thread, so forgive me if my reply isn't
> much help. Supposing your ipod comes up as /dev/sda1, what does
>
> lsof /dev/sda1
>
> tell you?
Actually nothing -- because I lost patience and just pulled the plug on it when it was refusing to eject. It works normally sometimes and right now it is working okay, so there are no files left open. In fact, I mis-reported in the original post. I am using gtkpod, not gpod. Gtkpod has two strange charactistics, but seems to be ususally workable. The oddities are - if you create an extra copy of the ipod by mistake (or when trying things out), there seems to be no way to delete it again, other than identifying the relevant lines in the ~/.gtkpod/prefs file. I have not tried this method incase I mess it up. - it has two copies of the same window offering "Artist" "Album" "Genre" etc tabs, and I have no idea why one is not enough. Until I do damage the filesystem, I've decided to accept the occasional error messages and continue simply unplugging it when it wont eject. Then I'll delete the ripped files that failed to copy from the computer on the assumption they are faulty in some way. I am going to leave experimentation with ipodlinux as at http://www.linux.com/articles/53221 for another day, when I have an ipod spare... Thanks for your comments. -- richard

Date: Wed, 29 Aug 2007 10:06:33 -0400 From: Celejar <celejar@gmail.com> To: debian-user@lists.debian.org Subject: Re: USB Hard Drive problems Message-Id: <20070829100633.1bae3f9f.celejar@gmail.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 29 Aug 2007 03:40:17 -0500 Ron Johnson <ron.l.johnson@cox.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 08/28/07 22:15, Celejar wrote:
> > Hi,
> >
> > I recently purchased a factory recertified Fantom Drives 120 GB USB
> > drive. I have just begun to use it, and I'm experiencing major
> > headaches. Every now and then (I don't see a triggering condition or
> > chronological pattern, but I see the problem several times a day) the
> > drive goes offline. Sometimes remounting fixes it, but at least twice
> > (including the period after the second incident seen below in the log)
> > it required power cycling. One of those times its status light went
> > red; usually it stays its normal blue, including during and after the
> > second incident below. I don't know much about HDDs; I'm including
> > copious syslog extracts from the last couple of failures.
> > Is this a hardware problem? Is there anything I can do?
>
> Seems to me you've got a bad drive. The red light is a bad sign.
Usually it stays blue, but barring any other suggestions, I'm going to have to assume it's bad and see if I can RMA it. [snipped logs]
> Ron Johnson, Jr.
> Jefferson LA USA
Celejar -- mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator

Date: Wed, 29 Aug 2007 07:11:55 -0700 From: Mike Bird <mgb-debian@yosemite.net> To: debian-user@lists.debian.org Subject: Re: Copy ./ to subdirectory. Message-Id: <200708290711.55542.mgb-debian@yosemite.net> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wednesday 29 August 2007 05:16, James Preece wrote:
> This is probably a simple question but I can't find the answer
> anywhere and my friend Google won't search for ./ and 'copy' brings up
> all sorts.
>
> Basically, I've got a folder containing various files for a website
> (for simplicity lets say it's this):
>
> /mydirectory/index.html
> /mydirectory/images/image.gif
>
> I want to make a backup so in the /mydirectory/ folder I do:
>
> cp -r ./ backup
>
> I wanted his to result in:
>
> /mydirectory/index.html
> /mydirectory/images/image.gif
> /mydirectory/backup/index.html
> /mydirectory/backup/images/image.gif
>
> Does that make sense? The error I get is:
>
> cp: cannot copy a directory, `./', into itself, `backup'
>
> Is there a way to have cp ignore the newly created directory? Something
> like:
>
> cp -r ./ backup --ignore=backup
>
> Any help appreciated. I can work around it by simply making my backup
> somewhere else but I would be suprised if it's not possible to do this
> somehow.
I'd use rsync locally. First a dry-run in case I'd made a mistake: rsync --dry-run -va --delete --exclude=backup /mydirectory/ /mydirectory/backup/ And then remove --dry-run and maybe also -v for the production version: rsync -a --delete --exclude=backup /mydirectory/ /mydirectory/backup/ For more complicated cases I'd add the -H and -S flags but it doesn't look like they're needed here. Please note that trailing slashes on directory names are significant to rsync. If you change the examples above you may see different behavior. --Mike Bird

Date: Wed, 29 Aug 2007 15:20:02 +0100 From: Tim Day <timday@bottlenose.demon.co.uk> To: =?ISO-8859-1?Q?Cs=E1nyi_P=E1l?= <csanyipal@csanyi-pal.info> Cc: debian-user@lists.debian.org Subject: Re: MSI nVidia NX7600GT-T2D256E Message-Id: <1188397202.24799.63.camel@basecamp.bottlenose.demon.co.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 2007-08-27 at 18:18 +0200, Cs=C3=A1nyi P=C3=A1l wrote:
> If I use "nv" driver, the X Window is much slower.
Having switched to "nv" from "nvidia" myself recently (see other messages in thread) I have to say I really can't notice any significant difference between them. Of course if you're running 3D stuff, "nv" will be falling back to software OpenGL (mesa) but for day-to-day 2D X-windows stuff "nv" seems entirely fast enough. When you switched to "nv", did you remember to reenable/re-add the Load "dri" line in your /etc/X11/xorg.conf ? (Needs to be disabled for nvidia, not nv). Might make a difference. Tim

Date: Wed, 29 Aug 2007 10:15:20 -0400 From: Patrick Ouellette <pat@flying-gecko.net> To: James Preece <james@lovingit.co.uk> Cc: debian-user@lists.debian.org Subject: Re: Copy ./ to subdirectory. Message-ID: <20070829141520.GA24515@flying-gecko.net> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 29, 2007 at 01:16:50PM +0100, James Preece wrote:
>
> cp: cannot copy a directory, `./', into itself, `backup'
>
> Is there a way to have cp ignore the newly created directory? Something like:
>
> cp -r ./ backup --ignore=backup
>
You could try using tar. Something like tar --exclude=backup | tar -x --directory=backup -- Patrick Ouellette pat@flying-gecko.net kb8pym@arrl.net Amateur Radio: KB8PYM Living life to a Jimmy Buffett soundtrack "Crank the amp to 11, this needs more cowbell - and a llama wouldn't hurt either"

Date: Wed, 29 Aug 2007 16:39:16 +0200 From: Joe Hart <j.hart@orange.nl> To: debian-user <debian-user@lists.debian.org> Subject: Re: Editing a text file with sed Message-Id: <200708291639.16793.j.hart@orange.nl> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wednesday 29 August 2007 15:48:50 Victor Munoz wrote:
> On Wed, Aug 29, 2007 at 03:17:46PM +0200, Joe Hart wrote:
> > I am having trouble using sed to edit text files, heres a good example of
> > what I am looking for:
> >
> > <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>
> >
> > I try this command:
> >
> > sed s/\n// / 1.txt > 2.txt and I get an error, so:
> > sed s'\n/ /' 1.txt > 2.txt and nothing happens.
> >
> > I don't get it. I though \n was end of line, which I am trying to
> > replace with spaces.
>
> sed works line by line, separately. There's an N modifier to make it
> work across lines. You may check
> http://www.panix.com/~elflord/unix/sed.html for a nice tutorial, or
> http://www-h.eng.cam.ac.uk/help/tpl/unix/sed.html for some examples.
> Thanks victor, upon further testing, perhaps sed isn't what I should be using in the first place. tr seems to be a better candidate, yet I cannot get this working either. It seems like such a simple thing to do, perhaps I need to write a program that will do it, but I thought surely there'd be a simple (or maybe not so simple) command line that would just do it. I don't care if it's sed, or tr, awk, perl, python, whatever... as long as I get the stupid hard returns out. Joe

Date: Wed, 29 Aug 2007 09:47:39 -0500 From: cothrige <cothrige@bellsouth.net> To: debian-user@lists.debian.org Subject: Re: capture real audio stream Message-ID: <874piiv1mc.fsf@celephais.home.net> Content-Type: text/plain; charset=us-ascii Lorenzo Bettini <bettini@dsi.unifi.it> writes: >
> I'm trying with this one
>
> http://www.bbc.co.uk/radio2/musicclub/events_andrewlloydwebber.shtml
>
> and can't find such links, not even with Page Info (as suggested by
> Joachim); could it be they changed something in their site?
Well, neither could I. I suppose that the Beeb has decided to really hide the actual content and this time did a bang up job as far as I can tell. They seem to have gotten rid of the standalone player link on their listen again player (though oddly BBC4 still has it and it is also on the BBC Radio 2 listen live page) and that definitely puts a kink in things. I tried viewing the source for each frame and that didn't show anything useful, at least not that I could recognize. :-) I even looked via ps for the running realplay in hopes that it would reveal some clue, but got nothing useful. In the end I was only able to succeed by accident. I tried the link in epiphany and it gave me a popup complaining that totem could not open the content, and in so doing told me the full file name. That turned out to be rtsp://rmv8.bbc.net.uk/radio2/fridaymusic.ra?BBC-UID=a42\ 6cbda207670378b86528c714caba3684a2b4fc040b101329203b36444a5b5&SSO2-UID=' I doubt that this could be reliably reproduced, though perhaps you may have a broken install of epiphany too, and that could turn out to be a good thing. 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. Patrick

Date: Wed, 29 Aug 2007 09:48:29 -0500 From: "Adam W" <adam.ckdvwwzz@gmail.com> To: debian-user@lists.debian.org Subject: make or preprocessor error - ddrescue-1.5 Message-ID: <7ce8224a0708290748qf272284xcb0a174a17672ad4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline For the recovery I am trying to do the direct disc accrss ability of ddrescue-1.[4|5] is recomended. I have the same problems when I try 1.4. The stable / testing / unstabe only have ddrescue-1.2x. So, I got ddrescue-1.5 from GNU. Thanks. I extract the archive and cd to the directory. $ ./configure creating config.status creating Makefile VPATH = . prefix = /usr/local exec_prefix = $(prefix) bindir = $(exec_prefix)/bin datadir = $(prefix)/share infodir = $(datadir)/info mandir = $(datadir)/man sysconfdir = $(prefix)/etc CC = gcc CXX = c++ CPPFLAGS = CFLAGS = -Wall -W -O2 CXXFLAGS = -Wall -W -O2 LDFLAGS = OK. Now you can run make. $ make c++ -Wall -W -O2 -c -o arg_parser.o arg_parser.cc make: c++: Command not found make: *** [arg_parser.o] Error 127 $ apt-cache serch c++ didn't help me I have cpp and gcc installed in /usr/bin/ So, I try linking them with c++ $ su # ln -T /usr/bin/cpp /usr/bin/c++ && make && install c++ -Wall -W -O2 -c -o arg_parser.o arg_parser.cc c++: "-c" is not a valid option to the preprocessor make: *** [arg_parser.o] Error 1 # rm /usr/bin/c++ && ln -T /usr/bin/gcc /usr/bin/c++ && make && install c++ -Wall -W -O2 -c -o arg_parser.o arg_parser.cc c++: error trying to exec 'cc1plus': execvp: No such file or directory make: *** [arg_parser.o] Error 1 # End of debian-user-digest Digest V2007 Issue #2272 ************************************************** Received on Wed Aug 29 11:09:04 2007

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

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


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