Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

debian-user-digest Digest V2007 #2324

From: <debian-user-digest-request(at)lists.debian.org>
Date: Fri Sep 07 2007 - 11:12:32 EDT


Content-Type: text/plain

debian-user-digest Digest Volume 2007 : Issue 2324

Today's Topics:

  Re: After Installing ISO Image I can  [ Jochen Schulz  ]
  Re: why sarge is so noisy             [ Julian De Marchi  ]
  Re: why sarge is so noisy             [ Jochen Schulz  ]
  Re: why sarge is so noisy             [ "Ari Constancio"  ]
  Re: why sarge is so noisy             [ Serena Cantor  ]
  Re: How to verify installed files?    [ David  ]
  Re: How to verify installed files?    [ Juha Tuuna  ]
  Re: How to verify installed files?    [ Juha Tuuna  ]
  Re: why sarge is so noisy             [ Ron Johnson  ]
  LSI Logic 1068 controller is support  [ "x x"  ]
  LSI Logic 1068 controller             [ "John Smith"  ]
  Re: why sarge is so noisy             [ Miles Fidelman  ]
  another script query (perl?)          [ Richard Lyons 

Date: Fri, 7 Sep 2007 09:46:50 +0200
From: Jochen Schulz <ml@well-adjusted.de> To: debian-user@lists.debian.org
Subject: Re: After Installing ISO Image I cant access GUI and Nedd

        "sources.list" file
Message-ID: <20070907074650.GF29289@wasteland.homelinux.net> Content-Type: multipart/signed; micalg=pgp-sha1;

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

--Oiv9uiLrevHtW1RS

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Do you need more help?X
Do you need help?X

Mostafijur Rahman:
>=20

> I tried to install GUI after installing my ISO CD.But I think problem=  in
> file /etc/apt/sources.list .

You are messing up a few things. It is always better to describe your original problem than to ask how to accomplish what you think *might* solve your problem.

So, instead of saying "I cannot install a GUI, please tell me what to put in my sources.list" you should better say:

I installed Debian (which version?) on my machine (what kind of machine?) but I couldn't tell the installer to install some kind of GUI (which one?). I tried $foo but it resulted in error message $bar.

>     I copy the example file in my /etc/apt/sources.list file
>     
http://wiki.debian.org/sources%2elist_example?highlight=3D%28sources.=
list%29

If you wanted to install pure Debian stable, this is most probably not what you want. The installer should have asked you about that anyway. But well, here's what I guess is what you want/need:

deb http://ftp.debian.org/debian/ etch main contrib non-free deb http://security.debian.org/debian-security etch/updates main contrib = non-free

After that, run apt-get update (or better: aptitude update) once or twice and you should be ready to install anything you want.

J.
--=20
As a child I pulled the legs from a spider. [Agree] [Disagree]

                 <
http://www.slowlydownward.com/NODATA/data_enter2.html>
Can we help you?X

--Oiv9uiLrevHtW1RS

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)

iD8DBQFG4QHq+AfZydWK2zkRAmOsAKCT5KTNBV2LpIA64TH7QwlDeOtlhgCfRY7k Pp/tZIWFJpRjg7+1xMBNHk8=
=1mt7
-----END PGP SIGNATURE----- --Oiv9uiLrevHtW1RS--

Date: Fri, 07 Sep 2007 17:40:38 +1000
From: Julian De Marchi <julian@jdcomputers.com.au> To: debian-user@lists.debian.org
Cc: debian-user@lists.debian.org
Subject: Re: why sarge is so noisy

Message-ID: <46E10076.1070109@jdcomputers.com.au>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Serena Cantor wrote:
> Thanks! Could you give me a list of programs that start automatically? Do you mean that there's > nothing I can do about it?

<snip>

Silly question.

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

Date: Fri, 7 Sep 2007 03:43:42 -0400
From: Hal Vaughan <hal@thresholddigital.com> To: debian-user@lists.debian.org
Subject: Re: why sarge is so noisy
Message-Id: <200709070343.42917.hal@thresholddigital.com> Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Friday 07 September 2007, Serena Cantor wrote: > Thanks! Could you give me a list of programs that start > automatically? Do you mean that there's nothing I can do about it?

Why not try "ps -ax" or "ps -aux" to get a list of programs running at any time? Then examine the crontab files as well and see what's starting at regular intervals.

You're talking about a long list of services in some cases, so it's not a case of someone telling you about 3-4 programs.

> My sarge is intended to be server, hopefully, most of server-related > work I add can be done in memory.

What are you serving that is only done in memory? If it's a print server, that's large files that go to the printer and they're written to the hard drive during output. If you're serving files, of course, that uses the drive. What service are you providing that doesn't need to access the drives?

Hal

Don't know where to look next?X

Date: Fri, 7 Sep 2007 10:26:17 +0300
From: Juha Tuuna <juha.tuuna@utu.fi>
To: debian-user@lists.debian.org
Subject: Re: Unblocking sound card, or adding stream (newbie) Message-Id: <200709071026.17567.juha.tuuna@utu.fi> Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Friday, 7. September 2007 06:30, Dr. Jennifer Nussbaum wrote:

> ...
> If theres no way to do this, bummer i guess. But my
> problem is that sometimes i seem to have something
> blocking the sound card and i cant figure out what it
> is. I dont THINK im running any sound thing ,but then
> if i try to run xmms i get a "something's blocking
> your sound card" message, or if i play a YouTube video
> i just get no sound at all.
>
> When this happens, how do i find out what's blocking
> hte sound card, and how do i kill this so i can play
> what i want?
>
> Thanks.
>
> Jen

If you're using ALSA, run
sudo /etc/init.d/alsa force-reload
But be careful, it'll kill the applications using alsa.
-- 
-=[JT]=-

It doesn't matter whether you win or lose -- until you lose.

PGP Public key
http://users.utu.fi/jukatu/juha_tuuna_utu.asc

Date: Fri, 7 Sep 2007 10:30:13 +0200 From: Jochen Schulz <ml@well-adjusted.de> To: debian-user@lists.debian.org Subject: Re: why sarge is so noisy Message-ID: <20070907083013.GG29289@wasteland.homelinux.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="R6sEYoIZpp9JErk7" Content-Disposition: inline --R6sEYoIZpp9JErk7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Julian De Marchi: > Serena Cantor wrote: >> Thanks! Could you give me a list of programs that start automatically? D= o=20 >> you mean that there's >> nothing I can do about it?
>=20
> <snip>
>=20
> Silly question. No, it's not a silly question. Serena, of course you can do something about it. It's linux, afterall. You can use the commands 'ps' or 'top' to have a look what is currently running. Then look into /etc/rc2.d/ which contains links to all scripts that are run at boot. Search the net and read how the init system works and finally remove any services you don't currently need. Another thing that came to my mind: if you are using a journaling filesystem (like ext3 which I think is Debian's default), the journal will be regularly committed to disk which causes disk spinups every ~5 seconds. J. --=20 Quite often I wonder why I am not more famous and/or more wealthy. [Agree] [Disagree] <http://www.slowlydownward.com/NODATA/data_enter2.html> --R6sEYoIZpp9JErk7 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) iD8DBQFG4QwV+AfZydWK2zkRAiB3AJ9mA18LjUPxxHcYnS01YK9m+RKYigCcDxA6 H1XcV88yXKHxQQI3cArwIGA= =ZoSx -----END PGP SIGNATURE----- --R6sEYoIZpp9JErk7--

Date: Fri, 7 Sep 2007 10:11:24 +0100 From: "Ari Constancio" <ari.constancio@gmail.com> To: "Dan H" <dunno@stoptrick.com> Cc: debian-user@lists.debian.org Subject: Re: why sarge is so noisy Message-ID: <66e82c800709070211l2f9387b8jd834bb5e6e3b0e65@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > Could be anything. There's a dozen processes runing on that machine at any given time, and any of them may access some files anytime. smbd for instance checks its configuration file every minute or so, and there may be other services that do likewise. > > BTW, if this machine is a server, wouldn't you expect it to do some work every now and then? Or if you didn't, why do you keep it on all the time? I can't get my head around people who insist on leaving unused machines powered 24/7. Hi, I would ask the same. What is a 'server' doing in a bedroom? Servers belong to the 'server room' and they are usually noisy (and expected to do something frequently). Ari Constancio

Date: Fri, 07 Sep 2007 11:35:19 +0200 From: arahjakult <arahjakult@tlen.pl> To: Ari Constancio <ari.constancio@gmail.com> Cc: Dan H <dunno@stoptrick.com>, debian-user@lists.debian.org Subject: Re: why sarge is so noisy Message-ID: <46E11B57.3030704@tlen.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Ari Constancio pisze: > Hi, > > I would ask the same. What is a 'server' doing in a bedroom? Servers > belong to the 'server room' and they are usually noisy (and expected > to do something frequently). > > Ari Constancio > > OT ? It's not your problem where the server stands.

Date: Fri, 7 Sep 2007 02:42:54 -0700 (PDT) From: Serena Cantor <qipaishi2006@yahoo.com> To: debian-user@lists.debian.org Subject: Re: why sarge is so noisy Message-ID: <681423.46327.qm@web35709.mail.mud.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thanks! "most of server-related work" are very specialized program I wrot= e myself. another example: seeding in bittorrent, if memory is big enough and file = being served is small enough. --- Hal Vaughan <hal@thresholddigital.com> wrote: > On Friday 07 September 2007, Serena Cantor wrote: > > Thanks! Could you give me a list of programs that start > > automatically? Do you mean that there's nothing I can do about it?
>=20
> Why not try "ps -ax" or "ps -aux" to get a list of programs running at=20 > any time? Then examine the crontab files as well and see what's=20 > starting at regular intervals.
>=20
> You're talking about a long list of services in some cases, so it's not= =20 > a case of someone telling you about 3-4 programs.
>=20
> > My sarge is intended to be server, hopefully, most of server-related > > work I add can be done in memory.
>=20
> What are you serving that is only done in memory? If it's a print=20 > server, that's large files that go to the printer and they're written=20 > to the hard drive during output. If you're serving files, of course,=20 > that uses the drive. What service are you providing that doesn't need=20 > to access the drives?
>=20
> Hal
>=20
>=20
> --=20 > To UNSUBSCRIBE, email to=20 > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debi= an.org
>=20
>=20
___________________________________________________________________= _________________ Luggage? GPS? Comic books?=20 Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=3Doni_on_mail&p=3Dgraduation+gifts&cs=3D= bz

Date: Fri, 07 Sep 2007 12:32:20 +0200 From: Erik Persson <erik-maillist@djingis.se> To: Debian Mailing List <debian-user@lists.debian.org> Subject: How to verify installed files? Message-ID: <46E128B4.4070208@djingis.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, I'm trying to figure out how to verify the files installed from a package by apt-get, ie I have installed a package A and want to verify that the files installed from the package are correct at some later time. Thus some process could have changed some of the files after I installed them, so the checking that is done at install time is *not* what I'm looking for. A related question. If I want to check that a package (in the archive - /var/cache/apt/archives) is correct compared to the same package located on a repository. How do I do this in the simplest way. I assume that md5sum is correct. Thanks in advanced, Erik.

Confused? Frustrated?X

Date: Fri, 7 Sep 2007 13:14:22 +0200 From: David <wizzardx@gmail.com> To: "Serena Cantor" <qipaishi2006@yahoo.com> Cc: debian-user@lists.debian.org Subject: Re: why sarge is so noisy Message-ID: <18c1e6480709070414v3c7876c6l55bad564530ab5dc@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/7/07, Serena Cantor <qipaishi2006@yahoo.com> wrote: > I have sarge, I use it all the time (it's server) > The machine is my bedroom and scsi disk make noise from time to time (it's read/writing) > > which script cause reading/writing? Let's assume it's default installation. I don't start any > program myself. > First stop cron, and check if you still get the noise. If the noise stops then check what runs from cron (tail /var/log/syslog). If your scsi drive makes a noise every minute, on the minute (or on some interval of time divisible by 60 seconds) then it is probably a cron script. Then run pstree and see what's running. Kill the process off one by one until the noise stops. When the noise stops then the last thing you killed is your suspect.

Date: Fri, 7 Sep 2007 13:17:15 +0200 From: David <wizzardx@gmail.com> To: "Erik Persson" <erik-maillist@djingis.se> Cc: "Debian Mailing List" <debian-user@lists.debian.org> Subject: Re: How to verify installed files? Message-ID: <18c1e6480709070417h78dd01f6mce102cb639ed7dd4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > > I'm trying to figure out how to verify the files installed from a > package by apt-get, ie I have installed a package A and want to verify > that the files installed from the package are correct at some later > time. Thus some process could have changed some of the files after I > installed them, so the checking that is done at install time is *not* > what I'm looking for. debsums > > A related question. If I want to check that a package (in the archive - > /var/cache/apt/archives) is correct compared to the same package located > on a repository. How do I do this in the simplest way. I assume that > md5sum is correct. > The simplest way is to download the deb file, then run md5sum against both the debs and compare the output.

Date: Fri, 7 Sep 2007 14:18:34 +0300 From: Juha Tuuna <juha.tuuna@utu.fi> To: debian-user@lists.debian.org Subject: Re: How to verify installed files? Message-Id: <200709071418.34675.juha.tuuna@utu.fi> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Friday, 7. September 2007 13:32, Erik Persson wrote: > Hello, > > I'm trying to figure out how to verify the files installed from a > package by apt-get, ie I have installed a package A and want to verify > that the files installed from the package are correct at some later > time. Thus some process could have changed some of the files after I > installed them, so the checking that is done at install time is *not* > what I'm looking for. extract control from the deb-package (into working directory): % dpkg-deb -e package.deb You'll get a dir/file named 'DEBIAN/md5sums' which contains (you guessed right!) the md5sums of the files in the package. You can compare the md5sums agains your current files % cd / % md5sum -c /path/to/the/DEBIAN/md5sums > A related question. If I want to check that a package (in the archive - > /var/cache/apt/archives) is correct compared to the same package located > on a repository. How do I do this in the simplest way. I assume that > md5sum is correct. > > Thanks in advanced, > > Erik. I don't know if this is the easiest but it works for me: % md5sum package.deb % apt-cache show package | grep -i md5sum The apt-cache show will list many entries if you have multiple versions available for installation (like stable/testing/unstable) -- -=[JT]=- Alimony and bribes will engage a large share of your wealth. PGP Public key http://users.utu.fi/jukatu/juha_tuuna_utu.asc

Date: Fri, 7 Sep 2007 14:24:17 +0300 From: Juha Tuuna <juha.tuuna@utu.fi> To: debian-user@lists.debian.org Subject: Re: How to verify installed files? Message-Id: <200709071424.18118.juha.tuuna@utu.fi> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Friday, 7. September 2007 14:17, David wrote: > debsums This is a nice piece of software. Thank you for the tip! -- -=[JT]=- "And what will you do when you grow up to be as big as me?" asked the father of his little son. "Diet." PGP Public key http://users.utu.fi/jukatu/juha_tuuna_utu.asc

Date: Fri, 07 Sep 2007 07:06:20 -0500 From: Ron Johnson <ron.l.johnson@cox.net> To: debian-user@lists.debian.org Subject: Re: why sarge is so noisy Message-ID: <46E13EBC.1050008@cox.net> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 09/07/07 01:45, Serena Cantor wrote: > I have sarge, I use it all the time (it's server) The machine is Sarge? Isn't that slightly Jurassic? > my bedroom and scsi disk make noise from time to time (it's > read/writing) SCSI disks, especially old ones, *are* noisy. > which script cause reading/writing? Let's assume it's default > installation. I don't start any program myself. Why should we assume that? What does "default installation" mean? A *base* install is pretty useless. - -- 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) iD8DBQFG4T68S9HxQb37XmcRAtudAKCz8H0b5OlWRxMaCgNL2OwO+ILoHgCgl02i lGv9PY0MdTUx24ZzD1kutO0= =/yVT -----END PGP SIGNATURE-----

Date: Fri, 7 Sep 2007 14:20:54 +0200 From: "x x" <linuxuser0167@gmail.com> To: debian-user@lists.debian.org Subject: LSI Logic 1068 controller is supported in the debian linux? Message-ID: <940d6c720709070520r63abc13by2960a89578b8303c@mail.gmail.com> Content-Type: multipart/alternative; boundary="----=_Part_593_31767457.1189167654644" ------=_Part_593_31767457.1189167654644 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, LSI Logic 1068 controller is supported in the debian linux? Thanks ------=_Part_593_31767457.1189167654644 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,<br><br>LSI Logic 1068 controller is supported in the debian linux?<br><br>Thanks<br><br> ------=_Part_593_31767457.1189167654644--

Date: Fri, 7 Sep 2007 14:28:20 +0200 From: "John Smith" <linuxuser0167@gmail.com> To: debian-user@lists.debian.org Subject: LSI Logic 1068 controller Message-ID: <940d6c720709070528v210f5687sc17ecc4f17792822@mail.gmail.com> Content-Type: multipart/alternative; boundary="----=_Part_614_18634210.1189168100289" ------=_Part_614_18634210.1189168100289 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, LSI Logic 1068 controller is supported in the debian linux? Thanks ------=_Part_614_18634210.1189168100289 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,<br><br>LSI Logic 1068 controller is supported in the debian linux?<br><br>Thanks ------=_Part_614_18634210.1189168100289--

Date: Fri, 07 Sep 2007 09:13:45 -0400 From: Miles Fidelman <mfidelman@meetinghouse.net> To: debian-user@lists.debian.org Cc: debian-user@lists.debian.org Subject: [OT] Re: why sarge is so noisy Message-ID: <46E14E89.8010708@meetinghouse.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Ron Johnson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 09/07/07 01:45, Serena Cantor wrote: > >> I have sarge, I use it all the time (it's server) The machine is >> > > Sarge? Isn't that slightly Jurassic? > I don't know, I'm still running it on a couple of production servers. I figure anything less than a year old (i.e., Etch) isn't stable enough for production - particularly given that a variety of the programs I run haven't been updated to Etch yet (though I haven't looked really recently). Miles

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

Date: Fri, 07 Sep 2007 09:29:06 -0400 From: Ralph Katz <ralph.katz@rcn.com> To: debian-user <debian-user@lists.debian.org> Subject: Re: Unblocking sound card, or adding stream (newbie) Message-ID: <46E15222.90508@rcn.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 09/06/2007 11:30 PM, Dr. Jennifer Nussbaum wrote: > I have a laptop with a sound card that only supports a > single stream. (People on #debian helped me figure > this out.) This is annoying not because i want to play > twelve different sypmhonies at once through high-def > systems, but just so i can listen to music while > getting beeps from Gaim, or whatever. > > If theres no way to do this, bummer i guess. But my > problem is that sometimes i seem to have something > blocking the sound card and i cant figure out what it > is. I dont THINK im running any sound thing ,but then > if i try to run xmms i get a "something's blocking > your sound card" message, or if i play a YouTube video > i just get no sound at all. > > When this happens, how do i find out what's blocking > hte sound card, and how do i kill this so i can play > what i want? Hi -- Are you running etch? I had this issue and posted my solution to the list on 21 Apr 2007, Subject: SOLVED Re: Sound mixing: Help configure dmix for flash, xmms, totem or make default. Maybe that message in the archives could help. Let us know. Ralph

Date: Fri, 07 Sep 2007 09:14:58 -0400 From: Miles Fidelman <mfidelman@meetinghouse.net> To: debian-user@lists.debian.org Cc: debian-user@lists.debian.org Subject: Re: why sarge is so noisy Message-ID: <46E14ED2.1040604@meetinghouse.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Serena Cantor wrote: > Thanks! Could you give me a list of programs that start automatically? Do you mean that there's > nothing I can do about it? > > My sarge is intended to be server, hopefully, most of server-related work I add can be done in > memory. > Do you run a mail server on it? Send/receive much traffic? Miles

Date: Fri, 07 Sep 2007 07:19:17 -0700 From: tabris <tabris@tabris.net> To: debian-user@lists.debian.org Subject: Re: another script query (perl?) Message-ID: <46E15DE5.3070508@tabris.net> Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigA72BC72A4C39E62E5CF044CA" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA72BC72A4C39E62E5CF044CA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Richard Lyons wrote: > Hi, all you script wizards. > > I thought this would be easy, but I haven't found anything to crib > from... > > I need a script to read a text file (actually tex) and parse lines of a= > table that may or may not span newline characters in the file. > Basically, there are lines of the form > > {some text} & {some more text} & {text c} & {text d} \\ > > where the braces are only for clarity and do not occur in the files, an= d > where the bits of text may include whitespace which may include newline= > characters. There may also be escaped ampersands in the text ('\&'), an= d > the text fragments may be empty. > > I suspect perl may be the way forward. I need to be able to read each > file, parse each set of three ampersands with a double backslash > breaking it into four substrings, manipulate the substrings and write > the file anew. A typical manipulation will be to take text c and copy > it to text d. I shall also try to strip leading and trailing whitespace= > to tidy up the file. > > Any and all pointers will be gratefully received! > > =20 please give real examples the text you have, as well as more info about what processing you will do with it. There are multiple ways to approach this, we need to have more information first. --------------enigA72BC72A4C39E62E5CF044CA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4V3lS8cLRnypNnERA2hTAJ9TZQr88LsNmfnCsug9tI5GxsSMtACaA+KT c1U28YCF8xdoiBeOp/r6iN0= =npF5 -----END PGP SIGNATURE----- --------------enigA72BC72A4C39E62E5CF044CA--

Date: Fri, 7 Sep 2007 15:04:50 +0100 From: Richard Lyons <richard@the-place.net> To: debian-user@lists.debian.org Subject: another script query (perl?) Message-ID: <20070907140449.GL12519@the-place.net> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, all you script wizards. I thought this would be easy, but I haven't found anything to crib from... I need a script to read a text file (actually tex) and parse lines of a table that may or may not span newline characters in the file. Basically, there are lines of the form {some text} & {some more text} & {text c} & {text d} \\ where the braces are only for clarity and do not occur in the files, and where the bits of text may include whitespace which may include newline characters. There may also be escaped ampersands in the text ('\&'), and the text fragments may be empty. I suspect perl may be the way forward. I need to be able to read each file, parse each set of three ampersands with a double backslash breaking it into four substrings, manipulate the substrings and write the file anew. A typical manipulation will be to take text c and copy it to text d. I shall also try to strip leading and trailing whitespace to tidy up the file. Any and all pointers will be gratefully received! -- richard End of debian-user-digest Digest V2007 Issue #2324 ************************************************** Received on Fri Sep 7 11:05:20 2007

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


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