Re: Chooping up text files, my solution

2003-10-28 Thread Volker Kuhlmann
> A good summary Volker, to which I will add the following (rather > obvious, which is why you probably omitted it) point: > > * descriptive man page Uhm, no, didn't think of it to be honest... Depends what the intended use is. If it's a bad hack for myself, I only put in --help to jog my memory

Re: How many partitions can you have

2003-10-28 Thread Trev
Martin Baehr wrote: > > On Tue, Oct 28, 2003 at 08:34:43PM +1300, Trev wrote: > > I read in a file "Partitioning Dos and Don'ts": Setting up a linux extended > > partition, which used to be a necessity with earlier disk tools, is now > > generally a no-no. Is this correct ?. > > linux extended? >

Re: How many partitions can you have

2003-10-28 Thread Trev
Matthew Gregan wrote: > > On Tue, Oct 28, 2003 at 09:17:40PM +1300, Trev wrote: > > Matthew Gregan wrote: > > > You should be able to have at least 63. > > > Is that by using an ext partition or not ?. > > 63 partitions in total per disk. So if you have 3 primary partitions, > you could then cr

Re: It's a blond moment - chopping up text files

2003-10-28 Thread Carl Cerecke
Martin Baehr wrote: On Sat, Oct 25, 2003 at 03:26:43PM +1300, Gareth Williams wrote: You could cat file | head -n 96 | tail -n 33 :) cat is almost always unnecessary: head -96 file | tail -34 For completeness (and while we are on the topic): tail +63 file | head -34 Cheers< Carl.

Re: Chooping up text files, my solution

2003-10-28 Thread Ross Drummond
On Wed, 29 Oct 2003 16:36, you wrote: > Volker Kuhlmann wrote: > > If however you're trying to make a part for the kitset/toolbox, the > > following rules apply: > > > > * error output goes to stderr, so it doesn't end up with the data > > * input/output can come from/to stdin/stdout, or file(s) >

Re: Chooping up text files, my solution

2003-10-28 Thread Carl Cerecke
Volker Kuhlmann wrote: If however you're trying to make a part for the kitset/toolbox, the following rules apply: * error output goes to stderr, so it doesn't end up with the data * input/output can come from/to stdin/stdout, or file(s) * the only way to give parameters to the program (e.g. to con

Re: Chooping up text files, my solution

2003-10-28 Thread Volker Kuhlmann
> Style question - aren't unix command line programs supposed to use > parameters, rather than interactive prompting? and to read from stdin > if no filename is supplied? No, they can do whatever they want. For example, mutt and pine are email clients which are interactive, and only use a text te

Re: Chooping up text files, my solution

2003-10-28 Thread Matthew Gregan
On Wed, Oct 29, 2003 at 03:57:31PM +1300, CF wrote: > > exit 0 > exit 0 means an exit code of 0, which to most programs means "sucessful > completion" Perhaps you want exit 1 here and exit 2 below ... It's not a good idea to pull exit codes out of thin air. Use a semi-standardized exit co

Re: Chooping up text files, my solution

2003-10-28 Thread CF
On Wed, 2003-10-29 at 15:14, Ross Drummond wrote: > Comments, improvements appreciated > echo -e "\nType in the name of the file you wish to extract lines from. \nThen > press " > read FileName > > echo -e "Type the number of the line where you want to start.\nThen press > ." > read StartNumber

Intro to Unix's toolbox philosophy

2003-10-28 Thread Carl Cerecke
There's an informative introductory article in the 2nd issue of the Linux Journal regarding the "Software Toolbox" approach that is characteristic of unix utilities. http://www.linuxjournal.com/article.php?sid=2762 Note that the dictionary it references is in a different file in most modern di

Re: Chopping up text files, my solution

2003-10-28 Thread Carl Cerecke
Ross Drummond wrote: > Comments, improvements appreciated It does the job, but it doesn't really follow the unix (Linux) philosophy for command line utilities. By and large, unix people like to be able to use smaller commands to build larger commands. This requires commands to be non-interactive

Chooping up text files, my solution

2003-10-28 Thread Ross Drummond
Vik Oliver was asking how to chop up text files Here is a bash script which I created to do this. Line wrapping has messed things up a bit. Download the script in text file form to avoid wrapping from; http://www.inet.net.nz/~atobrent/readit.txt Comments, improvements appreciated Cheers Ross

Re: CLUG Meeting

2003-10-28 Thread Rik T mobile
29/10/03 13:15:30, Nick Rout <[EMAIL PROTECTED]> wrote: >I can bring two laptops with wireless - one set up as a nocat auth >gateway. > >what is your 'portable wireless platform" exactly? detailed @: www.infohelp.co.nz/laptop.html Cheers Nick

Re: CLUG Meeting

2003-10-28 Thread Nick Rout
I can bring two laptops with wireless - one set up as a nocat auth gateway. what is your 'portable wireless platform" exactly? On Wed, 29 Oct 2003 13:10:04 +1300 Rik T mobile <[EMAIL PROTECTED]> wrote: > Hi Chris & CLUG, > > Seeing we have deskspace at tonight's meeting, is anyone keen on some

Re: CLUG Meeting

2003-10-28 Thread Rik T mobile
Hi Chris & CLUG, Seeing we have deskspace at tonight's meeting, is anyone keen on some wireless network testing? I remember Chris Bayley was exploring this a while back. My portable wireless platform is ready to run, given a suitable environment & a few pointers on settings (Knoppix 3.2 / Debi

Re: getting usb to work

2003-10-28 Thread CF
On Wed, 2003-10-29 at 10:50, Mike Beattie wrote: > On Tue, Oct 28, 2003 at 09:38:42PM +1300, Paul William wrote: > > The output of lsmod follows. > ... > > ide-core 97656 7 (autoclean) [ide-scsi ide-detect > > via82cxxx trm290 triflex slc90e66 sis5513 siimage serverworks sc1200 > >

Re: getting usb to work

2003-10-28 Thread Mike Beattie
On Tue, Oct 28, 2003 at 09:38:42PM +1300, Paul William wrote: > The output of lsmod follows. ... > ide-core 97656 7 (autoclean) [ide-scsi ide-detect > via82cxxx trm290 triflex slc90e66 sis5513 siimage serverworks sc1200 > rz1000 piix pdc202xx_old opti621 ns87415 hpt366 ide-disk hpt

Re: Various Linux questions

2003-10-28 Thread Matthew Gregan
On Wed, Oct 29, 2003 at 09:39:24AM +1300, Jaco Swart wrote: > 1. To prevent his PC from booting when he receives telephone calls: > Can this be changed in the BIOS? Yes. Look around for support for waking up the computer from particular IRQs. If it's an external modem, you'll need to disable wa

Re: Various Linux questions

2003-10-28 Thread CF
On Wed, 2003-10-29 at 09:39, Jaco Swart wrote: > 1. To prevent his PC from booting when he receives telephone calls: Can this be > changed in the BIOS? Turn off "Wake on Ring" or "Wake on Serial port" or "wake on IRQ4/IRQ3" (or whereever the modem is set to) > 2. Can KWord be set up to use the i

RE: Various Linux questions

2003-10-28 Thread Fisher, Robert (FXNZ CHC)
Flash rpms can be found at... http://macromedia.rediris.es/site_ri.html Robert There are two theories to arguing with women. Neither one works. -Original Message- From: Jaco Swart [mailto:[EMAIL PROTECTED] Sent: Wednesday, 29 October 2003 9:39 a.m. To: [EMAIL PROTECTED] Subje

Re: How many partitions can you have

2003-10-28 Thread Nick Rout
On Wed, 29 Oct 2003 09:06:34 +1300 antonovich <[EMAIL PROTECTED]> wrote: > > Hey, > this is excellent - basically what I wanted to know for my partitions. > Does anyone know any good info sites about lvm? > Cheers > Anton > LDP - always your first port of call: http://tldp.org/HOWTO/LVM-HOWT

Various Linux questions

2003-10-28 Thread Jaco Swart
Good morning! Regarding the Mandrake 9.1 installation I did for a friend a week ago: He has been using it for a few days now, and came back with a few questions. I'd like advice on a few, please :-) 1. To prevent his PC from booting when he receives telephone calls: Can this be changed in the

Re: How many partitions can you have

2003-10-28 Thread antonovich
Hey, this is excellent - basically what I wanted to know for my partitions. Does anyone know any good info sites about lvm? Cheers Anton Martin Baehr wrote: On Tue, Oct 28, 2003 at 08:34:43PM +1300, Trev wrote: I read in a file "Partitioning Dos and Don'ts": Setting up a linux e

Re: Strange Lilo error message

2003-10-28 Thread Hamish McBrearty
[EMAIL PROTECTED] writes: >On Tue, 28 Oct 2003, Hamish McBrearty wrote: > >> Hi there >> >> Well I was feeling a bit adventurous tonight and have successfully >> upgraded my Gentoo box to 2.6.0-test9. Everything's very sweet, and >seems >> quicker but that could be my imagination. >> >> However, wh

Re: How many partitions can you have

2003-10-28 Thread Martin Baehr
On Tue, Oct 28, 2003 at 08:34:43PM +1300, Trev wrote: > I read in a file "Partitioning Dos and Don'ts": Setting up a linux extended > partition, which used to be a necessity with earlier disk tools, is now > generally a no-no. Is this correct ?. linux extended? does this mean maybe the linux ext

Re: Strange Lilo error message

2003-10-28 Thread Philip Charles
On Tue, 28 Oct 2003, Hamish McBrearty wrote: > Hi there > > Well I was feeling a bit adventurous tonight and have successfully > upgraded my Gentoo box to 2.6.0-test9. Everything's very sweet, and seems > quicker but that could be my imagination. > > However, when I run Lilo I get an error I've ne

Re: It's a blond moment - chopping up text files

2003-10-28 Thread Martin Baehr
On Tue, Oct 28, 2003 at 04:52:18PM +1300, Mike Beattie wrote: > > dogs bark to much, i hate that. Wuff Wuff!! > Screen! see, i love it how i can silence screen and make it emit a text message instead. i wish i could do the same to dogs... > (and it's 'blonde' too, no?) my screen has a bl

Re: getting usb to work

2003-10-28 Thread Lee Begg
On Tue, 28 Oct 2003 21:38, Paul William wrote: > Hi, > > I have a web cam which I am trying to get working in Linux. When I plug > the camera in it gets no power from the USB port. I get no messages in > /var/log/messages. The output from lsusb > > [EMAIL PROTECTED] lsusb > cannot open /proc/bus/us

Re: CLUG Meeting

2003-10-28 Thread Nick Rout
from the epson site! (via google) http://www.epkowa.co.jp/english/linux_e/lsd_note_e.html On Tue, 28 Oct 2003 20:06:08 +1300 Chris Wilkinson <[EMAIL PROTECTED]> wrote: > Hi there, > > Nick Rout wrote: > > On Tue, 28 Oct 2003 17:47:10 +1300 > > Chris Wilkinson <[EMAIL PROTECTED]> wrote: > > >

Re: How many partitions can you have

2003-10-28 Thread Dale Anderson
Yeap ,generally you can only have a max on 4 primary partitions . Cheers Dale. On Tue, 2003-10-28 at 21:17, Trev wrote: > Matthew Gregan wrote: > > > > You should be able to have at least 63. > > > > Is that by using an ext partition or not ?. > > Trevor > > > Cheers, > > -mjg > > -- > > Mat

Re: getting usb to work

2003-10-28 Thread Paul William
I managed to get it working (by reading the handspring visor howto!) :-) On Wed, 2003-10-29 at 10:38, Paul William wrote: > Hi, > > I have a web cam which I am trying to get working in Linux. When I plug > the camera in it gets no power from the USB port. I get no messages in > /var/log/messages.

Re: How many partitions can you have

2003-10-28 Thread Matthew Gregan
On Tue, Oct 28, 2003 at 09:17:40PM +1300, Trev wrote: > Matthew Gregan wrote: > > You should be able to have at least 63. > Is that by using an ext partition or not ?. 63 partitions in total per disk. So if you have 3 primary partitions, you could then create one extended partition and an additi

getting usb to work

2003-10-28 Thread Paul William
Hi, I have a web cam which I am trying to get working in Linux. When I plug the camera in it gets no power from the USB port. I get no messages in /var/log/messages. The output from lsusb [EMAIL PROTECTED] lsusb cannot open /proc/bus/usb, No such file or directory (2) The output of uname -a: Lin

Re: WOW! Wesley Parich makes LinuxWorld!!

2003-10-28 Thread Trev
Jason Greenwood wrote: > > ...- way to go Wesley! > Ditto! Trevor > http://www.linuxworld.com/story/35659.htm

Re: How many partitions can you have

2003-10-28 Thread Trev
Matthew Gregan wrote: > > You should be able to have at least 63. > Is that by using an ext partition or not ?. Trevor > Cheers, > -mjg > -- > Matthew Gregan |/ > /|[EMAIL PROTECTED]

Re: How many partitions can you have

2003-10-28 Thread Matthew Gregan
On Tue, Oct 28, 2003 at 08:34:43PM +1300, Trev wrote: > I will want at least 4 different Linux's :-), a partition for doing CDs, a > partition for backups (from hda), that's 15 partitions, and will probably want > more. > Can i have that many ?. You should be able to have at least 63. Cheers, -

Strange Lilo error message

2003-10-28 Thread Hamish McBrearty
Hi there Well I was feeling a bit adventurous tonight and have successfully upgraded my Gentoo box to 2.6.0-test9. Everything's very sweet, and seems quicker but that could be my imagination. However, when I run Lilo I get an error I've never seen before. The system boots fine so I'm not too conc

How many partitions can you have

2003-10-28 Thread Trev
Hi, i have a new (2 months ago, not in yet :-( ) 80G hard drive and started wondering how many partitions can you put in a ide drive. I know i can have 4 primary, or 3 primary 1 ext How many logical drives can you have in a ext partition ?. I read in a file "Partitioning Dos and Don'ts": Setting

Re: Rescue Disks was Partition Tables

2003-10-28 Thread Chris Bayley
Volker Kuhlmann wrote: My new fav rescue disk is LNX-BBC which lives in my wallet. Good point, I had one of those many years back. Downloading now... Question of how to burn it though: Do corpcons sell to Joe Bloggs? In what quantities? TasTech min qty is 20 for $30. Enough interest for 20? I

Re: WOW! Wesley Parich makes LinuxWorld!!

2003-10-28 Thread Jason Greenwood
Don't hold your breath... ;) Wesley Parish wrote: Just saying something that I felt had to be said. Now it's up to BGjr and SB! Thanks. Wesley Parish On Wed, 29 Oct 2003 00:36, you wrote: I may have missed this onlist but - way to go Wesley! http://www.linuxworld.com/story/35659.htm

Re: CLUG Meeting

2003-10-28 Thread Chris Wilkinson
Hi there, Christopher Sawtell wrote: On Tue, 28 Oct 2003 16:25, you wrote: As we have so far got only Uttam and his SmartLink WinModem to be made to go. I'm sure there will be room for you. Uttam, please could you confirm that you will be bringing your machine? ...and I will confirm I shall brin

Re: WOW! Wesley Parich makes LinuxWorld!!

2003-10-28 Thread Paul William
Good job Wesley. On Wed, 2003-10-29 at 00:36, Jason Greenwood wrote: > I may have missed this onlist but - way to go Wesley! > > http://www.linuxworld.com/story/35659.htm -- .''`. Paul William : :' :Debian admin and user `. `'` `- Debian - when you have better things to do than fix

Re: CLUG Meeting

2003-10-28 Thread Chris Wilkinson
Hi there, Nick Rout wrote: On Tue, 28 Oct 2003 17:47:10 +1300 Chris Wilkinson <[EMAIL PROTECTED]> wrote: ...will do... libimlib1 is installed, but not the devel headers...that'll go on soon and I might just have enough clock space to try compiling it tonite... yeh but then what would i do tomorro