Linux-Misc Digest #769, Volume #25               Fri, 15 Sep 00 12:13:04 EDT

Contents:
  Mount ISO in NT like in Linux ("Jack")
  VCR - MATROX G 400 TV (Christian Duclou)
  Re: samba configuration (Christian Duclou)
  Re: Mount ISO in NT like in Linux (peter pilsl)
  which editor should I learn VI or EMACS ([EMAIL PROTECTED])
  which editor should I learn VI or EMACS ([EMAIL PROTECTED])
  OCR ? (Martin Racette)
  Re: which editor should I learn VI or EMACS (Manfred Muench)
  Re: netscape stalled ... again with java (Steve Gage)
  Re: OCR ? (Andreas K�h�ri)
  Re: which editor should I learn VI or EMACS (Andreas K�h�ri)
  Re: netscape stalled ... again with java (Manfred Muench)
  Re: As of right now I dedicate my life to linux ("Jason")
  Re: 2 NICs (BorgDrone)
  Re: Scripting SSH (Dustin Puryear)
  help: problem with sleep(I think) shuts off all services ([EMAIL PROTECTED])
  Hardware compatability (Rafael)
  umount problem w/ nfs (Tony Falcone)
  help config eth0 AE-200PNP-C (Peter Bismuti)
  Modem Has Locked Itself and Thrown Away The Key. (QNA)
  Uninstalling Linux (Hima Parimisetty)
  Re: 2 NICs (Neil Cherry)
  Re: End-User Alternative to Windows
  Re: which editor should I learn VI or EMACS (Andrew J. Perrin)
  Re: Help: batch renaming files - stripping bogus extensions (Robert Taylor)
  Re: help: problem with sleep(I think) shuts off all services (Fabian Gebhardt)
  Re: Uninstalling Linux (Ian Davey)
  Re: As of right now I dedicate my life to linux (Joseph Bullen)

----------------------------------------------------------------------------

From: "Jack" <[EMAIL PROTECTED]>
Subject: Mount ISO in NT like in Linux
Date: Fri, 15 Sep 2000 13:13:18 +0100

Hi all

What is the NT equivalent of the linux/unix command:
mount -o loop -t iso9660 <isofilename> <mountpoint>

This mounts an ISO image file (NOT CD) which allows you
to look at the files it contains and get files out of it.

I find that under windows NT I need to burn a CD first before
I can see the files.

--
The opinions expressed in this communication are my own, and do not
necessarily reflect those of my employer.



------------------------------

From: Christian Duclou <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: VCR - MATROX G 400 TV
Date: Fri, 15 Sep 2000 15:19:38 +0200
Reply-To: [EMAIL PROTECTED]

HI,

I'am not sure of the concerned group ...?

Can i record a TV-program with a MATROX G 400 TV on a Linux Box ?

My problem is to record periodically a TV program on (little) video file
server and to read it
on MacOs or window$ boxes with programs like Quicktime.

Are there drivers and programs that permit to do something like that :
(the program is suppose to be name "vcr")

Instant record:
    vcr --channel=cable --duration=30minutes </dev/matroxg400tv    \
            >/var/videoflash/2000091500

Periodic record :
with a crontab entry
    0 9 * * 1     /usr/bin/vcr --channel=cable --duration=30minutes
</dev/matroxg400tv    \
             >/var/videonews/2000091500
same without crontab entry
    vcr --channel=cable --period=week --day=Monday --begin=09:00
--end=09:30 \
            --device=/dev/matroxg400tv >/var/videonews/2000091500

Thanks,
Christian


--
_____________ EEIGM - Service Informatique _____________
 6, rue Bastien LEPAGE / F-54010 NANCY - CEDEX - France
     Phone: +33 383.3683.27  /  Fax: +33 383.3683.36
_______________ http://eeigm.inpl-nancy.fr _____________



------------------------------

From: Christian Duclou <[EMAIL PROTECTED]>
Subject: Re: samba configuration
Date: Fri, 15 Sep 2000 15:25:18 +0200
Reply-To: [EMAIL PROTECTED]

HI

You can take a look at
    http://www.kneschke.de/projekte/samba_tng/files/index.php3
or
    http://www.kneschke.de/projekte/samba_tng/books/index.php3
or
    http://www.eeigm.inpl-nancy.fr/Docs/samba2.0.xx/html/index.html

Brad Kinser wrote:

> [EMAIL PROTECTED] wrote:
>
> > I am trying to get my windows machine to connect to Linux via SMB. I
> > have done this before but have had to reload Linux. I can't seem to
> > remember all the settings. Here is my smb.conf file. Could anyone see
> > what I am missing.
>

--
_____________ EEIGM - Service Informatique _____________
 6, rue Bastien LEPAGE / F-54010 NANCY - CEDEX - France
     Phone: +33 383.3683.27  /  Fax: +33 383.3683.36
_______________ http://eeigm.inpl-nancy.fr _____________



------------------------------

From: peter pilsl <[EMAIL PROTECTED]>
Subject: Re: Mount ISO in NT like in Linux
Date: Fri, 15 Sep 2000 13:29:23 GMT

In article <8pt3gd$gpb$[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
says...
> Hi all
> 
> What is the NT equivalent of the linux/unix command:
> mount -o loop -t iso9660 <isofilename> <mountpoint>
> 
> This mounts an ISO image file (NOT CD) which allows you
> to look at the files it contains and get files out of it.
> 
> I find that under windows NT I need to burn a CD first before
> I can see the files.
> 

This cannot be done with board-commands of nt, but maybe some ports cannot 
do it. (ie the cygwin-collection contains lot of ported commands including 
mount, but I dont know if it can handle iso-filetypes)

maybe some cd-burn-software can give you a sneak-preview before burning.

peter

-- 
pilsl@
goldfisch.at

------------------------------

From: [EMAIL PROTECTED]
Subject: which editor should I learn VI or EMACS
Date: Fri, 15 Sep 2000 13:26:01 GMT

which editor should I learn VI or EMACS


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: [EMAIL PROTECTED]
Subject: which editor should I learn VI or EMACS
Date: Fri, 15 Sep 2000 13:30:42 GMT

which editor should I learn VI or EMACS

Please email me at [EMAIL PROTECTED]




Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: Martin Racette <[EMAIL PROTECTED]>
Subject: OCR ?
Date: Fri, 15 Sep 2000 13:43:45 GMT

Hi guys,

I'M wondering if there is any OCR program for Linux, I use Mandrake 7.1

Thank you in advance

Merci a l'avance

Martin

------------------------------

From: Manfred Muench <[EMAIL PROTECTED]>
Subject: Re: which editor should I learn VI or EMACS
Date: 15 Sep 2000 15:50:08 +0200

>>>>> "s" == smithj  <[EMAIL PROTECTED]> writes:
 s> which editor should I learn VI or EMACS

The answer depends on what you want to do. VI is available on almost
every Linux/Unix system, no matter how "thin" it is configured you
will always find a vi on these systems. Emacs is a powerful thing and
for software development etc. the editor of your choice (imho).

Cheers,
Manfred

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Dipl.-Inform. Manfred Muench
 |  Dept. of Computer Science III
 |  Aachen University of Technology
 |  Ahornstr. 55, 52074 Aachen, Germany
 |  EMail: [EMAIL PROTECTED]
    URL:   http://www-i3.informatik.rwth-aachen.de
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------

From: Steve Gage <[EMAIL PROTECTED]>
Subject: Re: netscape stalled ... again with java
Date: Fri, 15 Sep 2000 13:54:50 GMT

"Dr. Mathias Hellwig" wrote:
> 
> hi
> 
> I'm using (Suze 6.4):
> 
> Linux xxx 2.2.14 #1 Sat Mar 25 00:45:35 GMT 2000 i686 unknown
> 
> with Netscape� Communicator 4.75
> 
> with libc.so.4.7.6  /lib/libc.so.6
> 
> everything is fine, except if java is involved. I tried a couple of
> things, buts nothing works. What's wrong?
> 
> Mathias
> 
> PS: hurry up that drives me nuts! :-)

I have tried every suggestion under the sun to get java working under NS
for a couple of years now. As of NS 4.75, it still locks up. If I turn
java off, NS 4.75 is quite reliable for me. Turn java on, and it's just
a matter of a few minutes before it freezes. Oh well.

- Steve

------------------------------

Subject: Re: OCR ?
From: Andreas K�h�ri <[EMAIL PROTECTED]>
Date: 15 Sep 2000 15:54:51 +0100

In article <[EMAIL PROTECTED]>,
Martin Racette  <[EMAIL PROTECTED]> wrote:
>Hi guys,
>
>I'M wondering if there is any OCR program for Linux, I use Mandrake 7.1
>
>Thank you in advance
>
>Merci a l'avance
>
>Martin

Making a simple search for "ocr" at Freshmeat (at
<URL:http://freshmeat.net/>) I found 'gocr', 'ocre' and 'Qui-ne-faut'
(three projects on optical character recognition).

Try at SourceForge (at <URL:http://sourceforge.net/>) too.

/A

-- 
Andreas K�h�ri, <URL:http://hello.to/andkaha/>. Junk mail, no.
========================================================================
Reformat is a state of disk...

------------------------------

Subject: Re: which editor should I learn VI or EMACS
From: Andreas K�h�ri <[EMAIL PROTECTED]>
Date: 15 Sep 2000 15:57:13 +0100

In article <8pt80i$mdg$[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]> wrote:
>which editor should I learn VI or EMACS
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.

Eeek. Religious war alert!

*try* to learn both. Some day you'll be thankful you did.

/A

-- 
Andreas K�h�ri, <URL:http://hello.to/andkaha/>. Junk mail, no.
========================================================================
Reformat is a state of disk...

------------------------------

From: Manfred Muench <[EMAIL PROTECTED]>
Subject: Re: netscape stalled ... again with java
Date: 15 Sep 2000 16:00:52 +0200

>>>>> "SG" == Steve Gage <[EMAIL PROTECTED]> writes:
 SG> I have tried every suggestion under the sun to get java working under NS
 SG> for a couple of years now. As of NS 4.75, it still locks up. If I turn
 SG> java off, NS 4.75 is quite reliable for me. Turn java on, and it's just
 SG> a matter of a few minutes before it freezes. Oh well.

Same with me. I have tried different NS-versions (up to 4.73) but
nothing could solve that problem. Java and Netscape are just two
things that don't go together, such as CSS 2.0 and Netscape, HTML 4.0
and NS, xyz and NS... You name it... After having been a fanatic user
of NS I'm so disappointed meanwhile that I will dump it asap. At the
moment I'm using VMware and WinNT 4 just to have a decent browser
which can handle Java, JS, HTML 4.0, CSS 2.0 and all that stuff
without showing strange results or crashes... If anyone knows a
browser for Linux which can do all that, please let me know!

Cheers,
Manfred

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Dipl.-Inform. Manfred Muench
 |  Dept. of Computer Science III
 |  Aachen University of Technology
 |  Ahornstr. 55, 52074 Aachen, Germany
 |  EMail: [EMAIL PROTECTED]
    URL:   http://www-i3.informatik.rwth-aachen.de
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------

From: "Jason" <Jason(AT)cyborgworkshop.com>
Subject: Re: As of right now I dedicate my life to linux
Date: Fri, 15 Sep 2000 09:06:31 -0500

Actually, Im very comfortable with Linux and have a few MS boxes at home,
not to mention the NT box Im on right now from work.  I suggested to remove
the windows machines simply because I remember when I first started.  I
would get enormously frustrated and instead of trying to look for help or
press through, I just plopped down on my windows box and used it between
BSODs.  I didn't really get to move on Linux until I had a project in mind
and my windows box became a victim of a bootable CD.  Once the crutch was
gone, things clicked.   I only have windows machines around now because my
roommate is a windows freak and insists on having them, and it's easier to
support my parents problems when I have a box to look at while Im on the
phone.  For my uses, Linux and FreeBSD provide me a much easier environment
to develop on.   Next time, try not to read so far into things, it helps you
look less arrogant.


--
                         Jason
          www.cyborgworkshop.com
...and the geek shall inherit the earth...



------------------------------

From: BorgDrone <[EMAIL PROTECTED]>
Subject: Re: 2 NICs
Date: Fri, 15 Sep 2000 14:20:43 GMT

In article <[EMAIL PROTECTED]>,
  Rafael <[EMAIL PROTECTED]> wrote:
> You have to set interupt manualy in conf.modules file. This problem
accure
> when you have the same card in the computer. You always have to set
them
> manualy, but it will be enaugh if will set manualy only one card.
> Rafael
>
> BorgDrone wrote:
>
> > hi,
> >
> >  I have two 3com 3c509 NICs. Both work fine, but when I try to load
the
> > driver module with 'insmod 3c509' it automatically
> >  detects _both_ NICs, and assigns both network cards the same i/o
> > address. Passing parameters such as 'io=0x230'
> >  doesn't seem to work, it just says 'invalid
> >  parameter: io.
> >
> >  I've read the insmod man page, btw.
> >
> >  Somebody told me I need to install some 3com config tool first, is
that
> > true? If so, where can I get it? I couldn't find it
> >  anywhere on their website.
> >
> >  any help appreciated, thanks very much,
> >
> >  Dominik



But I can only change the base i/o with the 3com config tool, cause I
can't turn off PNP mode :(

according to ifconfig, the first NIC ( eth0 ) has irq 10 / base i/o
0x300; and the second NIC ( eth1 ) has irq 11 / base i/o 0x320. So it
should work... but it doesn't. However, if I remove one of the cards,
the other one works....


Dominik



Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: [EMAIL PROTECTED] (Dustin Puryear)
Subject: Re: Scripting SSH
Reply-To: [EMAIL PROTECTED]
Date: Fri, 15 Sep 2000 14:35:21 GMT

On 13 Sep 2000 23:38:42 GMT, "Peter T. Breuer" <[EMAIL PROTECTED]>
wrote:

>Jeffrey Hood <[EMAIL PROTECTED]> wrote:
>:> Alternatively, you could just add your public key on the server and be
>:> done with password prompts altogether. Of course, then it might be too
>:> seamless..
>
>: I hate to sound stupid, but where do I go to find how to do this... ??
>
>The man page for ssh.
>
>Just add your public key to the authorized_keys file in your .ssh
>directory on the server (at least that's what I presume he means).

Yes, that is what I meant. By the way, Jefferey, locate and use
ssh-copy-id in the contribs directory. It will make copying your keys
very easy.

---
Dustin Puryear <[EMAIL PROTECTED]>
Author of "Integrate Linux Solutions into Your Windows Network"
The Baton Rouge Linux User Group - http://www.brlug.net

------------------------------

From: [EMAIL PROTECTED]
Subject: help: problem with sleep(I think) shuts off all services
Date: Fri, 15 Sep 2000 14:35:27 GMT



  Hi,
   I have an Athlon 700Mhz running on an ASUS K7V (with latest BIOS
  update) with 128MB RAM, 40GB Hard Disk and also a Voodoo3 as its Video
  Card.  It is running Linux Mandrake 7.1xx and my problem is that on
  three (maybe four) occassions now I leave the machine unnattended for
  about a day or two (maybe more) and when I come back it is totally
  unresponsive.  It seems to be in sleep, but it doesn't respond to any
  Network request, much less any Keyboard or Mouse input and all I'm
left
  to do is reboot the machine by pressing the reset button.  I have
  disabled all Power Management features in the BIOS, and that not being
  enough tried to disable the Laptop battery management service and any
  other serive that might be power related (from the services dialog box
  where you check and uncheck them).  Unfortunately the problem is still
  there and the system, after a few days of no one logging in, will
enter
  this state.  This machine is meant to stay on 24/7.  Any help will be
  really appreciated.

---Also I would have posted this in 'linux.help' but this service
wouldn't let me!



Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: Rafael <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x
Subject: Hardware compatability
Date: Fri, 15 Sep 2000 16:44:48 -0700

I am tried to force people at our intytution to run Linux server. I can
spent lot for hardware. I choose this  things on the list below. If some
of you had some experience with some of this hardware please write to me
back.
Will it work fine with RedHat Linux 6.2 and XWindows

Epox EP-3VCA Socket 370 ATX
Intel Celeron 600 MHz, socket 370, 128 kB cache
Memmory  133Mhz
IBM Deskstar 40GV - 20,5 GB IDE Ultra ATA-66/100 5400 RPM
Riva TNT-2 M64 32 Mb AGP

Rafael



------------------------------

From: Tony Falcone <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: umount problem w/ nfs
Date: Fri, 15 Sep 2000 09:53:22 -0500

Hi,

Here's the set up: I am running nfs on three different linux boxes in my office, RH 
6.1,

RH 5.2 and Slackware.  On the RH 6.1 box, I have a ZIP drive, attached through the 
parallel

port.  Before an nfs mount, I can mount and unmount the zip drive (on /mnt/zip) with

impunity, and never have a problem.

I have exported this file system via the folllowing line in /etc/exports:

/mnt/zip 128.97.0.0/255.255.0.0(rw,no_root_squash)

On the RH 5.2 box, /etc/fstab contains the following entry:

rh6.1:/mnt/zip   /doszip    nfs   user,noexec,dev,nosuid,rw,noauto,hard,intr,rsize=8192

,wsize=8192,nfsvers=2   0   0

Now, on the RH 5.2 box, I do

(RH 5.2)$ mount /doszip   //  This works fine.  I can work on the fs without problems.

(RH 5.2)$ umount /doszip  //  This also works fine.  No problems.

Back on RH 6.1, kernel log acknowledges that RH 5.2 mounted and unmounted without any

incidents.  In /var/lib/nfs, rmtab contains an entry noting that RH 5.2 has mounted

/mnt/zip while it is mounted, and when the unmount request is received, this entry is

removed (and, since no other nfs mounts are current, rmtab now has 0 size).

However, when I try to umount /mnt/zip, I get the dreaded error message:

umount: /mnt/zip: device is busy

I have run both fuser and lsof, and neither one can detect any processes having any 
open

files, etc., on /mnt/zip.  Because I want to be able to change zip disks without having

to reboot, this is a pretty annoying error, so I would appreciate any help anyone is

able to give me.  Thanks.

--
Tony Falcone
Assistant Professor
Illinois State University Math Dept.  --  Campus Box 4520
303C Stevenson Hall                     Office Phone: (309) 438-7367
Email: [EMAIL PROTECTED]   (Alternate:  [EMAIL PROTECTED])
Web: http://www.math.ilstu.edu/~afalcone




------------------------------

From: [EMAIL PROTECTED] (Peter Bismuti)
Subject: help config eth0 AE-200PNP-C
Date: 15 Sep 2000 15:06:30 GMT


Hi, I have a Addtron ethernet adaptor model number AE-200PNP-C.  REdhat6.1
did not detect it properly after a hardware rebuild.  Can anyone give me a 
little help setting it up?  

Thanks!



------------------------------

From: QNA <[EMAIL PROTECTED]>
Subject: Modem Has Locked Itself and Thrown Away The Key.
Date: Fri, 15 Sep 2000 15:28:34 GMT

i am running Mandrake Linux 7.0 and when i launched a terminal and entered 
the correct command for it to detect my modem on Com Port 3 everything 
went fine. Well for some dumb reason i went back and did it again or 
something and now when i try to connect to the internet it says "Sorry 
Modem is Locked" ok well that isnt good. So how do i unlock my modem?
Thanks.

--
Posted via CNET Help.com
http://www.help.com/

------------------------------

From: Hima Parimisetty <[EMAIL PROTECTED]>
Subject: Uninstalling Linux
Date: Fri, 15 Sep 2000 15:28:35 GMT

Hi ,
  I have a Dell PC with both linux and Windows '98 on different partitions 
of the hard disk. I wanted to unistall linux completely and format  the 
linux partition back to FAT file system .I did the following:
  1)Removed LILO by 
 booting into MSDOS and FDISK /MBR
  2)Then deleted the Linux  partitions with the help of linux install CD.
Now the hard disk is like this :
  one partition with(FAT) windows'98(primary partition)
  second partition with out any file system.

Now the pc boots straight windows'98 ,but what i'd like to know is 
how to stretch the FAT partition to encapsulate the whole hard disk with 
out losing data on my FAT partition ?

 If i have to use dos fdisk,what option should i use? I just want to make 
sure i don't destruct the data on  FAT  partition.

  Your help is greatly appreciated.

TIA,
Hima.



--
Posted via CNET Help.com
http://www.help.com/

------------------------------

From: [EMAIL PROTECTED] (Neil Cherry)
Subject: Re: 2 NICs
Reply-To: [EMAIL PROTECTED]
Date: Fri, 15 Sep 2000 15:34:04 GMT

On Fri, 15 Sep 2000 14:20:43 GMT, BorgDrone wrote:
>In article <[EMAIL PROTECTED]>,
>  Rafael <[EMAIL PROTECTED]> wrote:

>according to ifconfig, the first NIC ( eth0 ) has irq 10 / base i/o
>0x300; and the second NIC ( eth1 ) has irq 11 / base i/o 0x320. So it
>should work... but it doesn't. However, if I remove one of the cards,
>the other one works....

Do a pnpdump and see if one of thecards has reconfig'd it self (BIOS
chaged it perhaps).

-- 
Linux Home Automation           Neil Cherry             [EMAIL PROTECTED]
http://members.home.net/ncherry                         (Text only)
http://meltingpot.fortunecity.com/lightsey/52           (Graphics)
http://linuxha.sourceforge.net/                         (SourceForge)

------------------------------

From: [EMAIL PROTECTED] ()
Crossposted-To: alt.os.linux,comp.os.linux.advocacy
Subject: Re: End-User Alternative to Windows
Date: Fri, 15 Sep 2000 15:37:48 GMT

On Fri, 15 Sep 2000 08:44:28 +0100, Stuart Fox <[EMAIL PROTECTED]> wrote:
>
>"D G" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
>> [EMAIL PROTECTED] wrote:
>>
>> I'll give you the variety part, but not the quality part.  The majority
>> of *nix software is of far higher quality, IMO.  (Unless you equate eye
>> candy with quality.)
>>
>Personally, I'd class look and feel part of quality.  In my book, quality
>isn't just stability...

        How it look has remarkably less to do with how the data gets
        generated OR whether or not your data remains intact.

-- 
        Finding an alternative should not be like seeking out the holy grail.

        That is the whole damn point of capitalism.   
                                                                |||
                                                               / | \

        

------------------------------

From: [EMAIL PROTECTED] (Andrew J. Perrin)
Subject: Re: which editor should I learn VI or EMACS
Date: 15 Sep 2000 11:37:29 -0400

Andreas K�h�ri <[EMAIL PROTECTED]> writes:

> In article <8pt80i$mdg$[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]> wrote:
> >which editor should I learn VI or EMACS
> >
> >
> >Sent via Deja.com http://www.deja.com/
> >Before you buy.
> 
> Eeek. Religious war alert!
> 
> *try* to learn both. Some day you'll be thankful you did.

Seconded - they're both very useful for different tasks:
IMHO,
vi - small, pretty much guaranteed to be on any unix box, quick, fast
to load, small memory footprint, but pretty arcane and not that
expandable;

emacs - big (as in HUGE both in disk and RAM footprint), slower to
load and use, infinitely expandable, great as a code editor for auto
indenting, syntax highlighting, etc., etc., etc.

-- 
======================================================================
Andrew Perrin - Solaris-Linux-NT-Samba-Perl-Access-Postgres Consulting
       [EMAIL PROTECTED] - http://demog.berkeley.edu/~aperrin
======================================================================

------------------------------

From: Robert Taylor <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.questions
Subject: Re: Help: batch renaming files - stripping bogus extensions
Date: Fri, 15 Sep 2000 16:40:06 +0100

#!/bin/ksh

TMPFILE="/tmp/$$"

ls *jpg* > $TMPFILE.files_in

cat $TMPFILE.files_in | while read FNAME
do
  NEW_NAME=`echo $FNAME | cut -d "." -f1`
  echo "Moving $FNAME to $NEW_NAME.jpg"
  if [ -f $NEW_NAME.jpg ]
  then
    echo "$NEW_NAME.jpg already exists - best not to move !"
  else
    mv "$FNAME" $NEW_NAME.jpg
  fi
done

rm $TMPFILE.files_in

==============
Something like this might work - Excuse syntax problems but I don't have access to
UNIX right now to try this out. I'm sure there will be faster / better ways of
doing this.
Also , try it with the mv commented out as I don't want to be responsible for any
results.

HTH.



"Jerri Blavitt�" wrote:

> I'm having no luck using rename to strip off the weird file name tails
> that occur after the normal extension .jpg
>
> This directory is huge, with 1000+ files. A harvest-bot often globbed
> the byte size of the file onto the tail end of the file name.
>
> Using wildcards to remove it fails i.e.
>
> rename .jpg* .jpg *
> or
> rename ".jpg *" .jpg *
>
> A sample of the mixed file names is below, notice that there appears to
> be illegal white space between .jpg and xxxxxx bytes
>
> -rw-r--r--    1 feed  feed    107545 Sep 13 21:12 sn-O0024.jpg 107545 bytes
> -rw-r--r--    1 feed  feed    100391 Sep 13 21:12 sn-O0064.jpg 100391 bytes
> -rw-r--r--    1 feed  feed    109157 Sep 13 21:12 sn-O0073.jpg 109157 bytes
> -rw-r--r--    1 feed  feed    108099 Sep 13 21:12 sn-o0010.jpg 108099
> -rw-r--r--    1 feed  feed    109584 Sep 13 21:12 sn-o0011.jpg 109584
> -rw-r--r--    1 feed  feed    107300 Sep 13 21:12 sn-o0019.jpg 107300
> -rw-r--r--    1 feed  feed    101765 Sep 13 21:12 sn-o0030.jpg 101765
> -rw-r--r--    1 feed  feed    106760 Sep 13 21:12 sn-o0213.jpg 106760
> -rw-r--r--    1 feed  feed     99057 Sep 13 21:12 ss13h09.jpg
> -rw-r--r--    1 feed  feed     95988 Sep 13 21:12 ss14c19.jpg
> -rw-r--r--    1 feed  feed     96597 Sep 13 21:12 ss21h05.jpg
> -rw-r--r--    1 feed  feed     99716 Sep 13 21:12 ss32d06.jpg
> -rw-r--r--    1 feed  feed     98067 Sep 13 21:12 ss32d10.jpg
> -rw-r--r--    1 feed  feed     96451 Sep 13 21:12 ss32d13.jpg
>
> Any help would be appreciated.
>
> Thanks,
> Eric
>
> ps I also tried something like this:
>
> for file in *.jpg* ; do mv $file `echo $file | sed 's/\(.*\.\)/\1jpg/'` ; done
>
> and it complains:
>
> mv: when moving multiple files, last argument must be a directory
> Try `mv --help' for more information.


------------------------------

From: Fabian Gebhardt <[EMAIL PROTECTED]>
Subject: Re: help: problem with sleep(I think) shuts off all services
Date: Fri, 15 Sep 2000 17:59:16 +0200

Are there some entrys in /var/log/messages?

-- 
CU, Fabian Gebhardt 
   
   E-Mail:      [EMAIL PROTECTED]
   ICQ#:        77948091
   Homepage:    http://www.ki.tng.de/~gebhardt
   Schul-Seite: http://www.ebg.org

------------------------------

From: [EMAIL PROTECTED] (Ian Davey)
Subject: Re: Uninstalling Linux
Date: Fri, 15 Sep 2000 16:01:28 GMT

In article <[EMAIL PROTECTED]>, Hima Parimisetty <[EMAIL PROTECTED]> 
wrote:
>Now the pc boots straight windows'98 ,but what i'd like to know is 
>how to stretch the FAT partition to encapsulate the whole hard disk with 
>out losing data on my FAT partition ?
>
> If i have to use dos fdisk,what option should i use? I just want to make 
>sure i don't destruct the data on  FAT  partition.

Wouldn't you be better off asking this question on a Windows group? I wouldn't 
recommend fdisk as I don't think it can non-destructively resize partitions. 
So you'll need to find a tool that can. An alternate is just to create another 
Fat32 partition in your remaining space and just use it as drive d:

ian.

 \ /
(@_@)  http://www.eclipse.co.uk/sweetdespise/ (dark literature)
/(&)\  http://www.eclipse.co.uk/sweetdespise/libertycaptions/ (art)
 | |

------------------------------

From: [EMAIL PROTECTED] (Joseph Bullen)
Subject: Re: As of right now I dedicate my life to linux
Date: 15 Sep 2000 16:09:52 GMT

Koos Pol ([EMAIL PROTECTED]) wrote:
: On Thu, 14 Sep 2000 17:03:11 -0500, Jason <Jasoncyborgworkshop.com> wrote:
: | 2.   If you leave a Windows box laying around saying "it's just for
: | games" soon it will be,
: | "well that game was fun, might as well check my email while Im here, 
: | and surf the web, and etc"

: If that would be your reasoning for stopping to boot a Windows box then you
: are lost. If one has a legitimate reason to do so, it is foolish to keep a
: crampy posture about the most popular operating system in the world.
: Apparently you are not so sure yourself wether Linux is the answer to your
: problems. Are you?

While I don't subscribe to the crampy posture philosophy, either, it is a
warm fuzzy feeling when you get games working under linux.

http://www.linuxgames.com

--
Joseph Bullen, B.Sc. Computer Science
[EMAIL PROTECTED]


------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to