Nice script.
Question:  On one LM10 machine it works fine.  On another I get the following 
error:
[execution directory]: line 13: syntax error near unexpected token 'done'
[execution directory]: line 13: done

with no output.

What gives?  Where should the line breaks be?

TIA
Paul

On Sunday 27 June 2004 12:46 pm, mike wrote:
> Frank wrote:
> > Yeah, it is the way the kernel actually sees the drives or some such
> > mumbo jumbo. So much simpler crunched the old way.
> >
> > Try:
> >
> > # fdisk -l           [Note-as root]
> >
> > Regards
> >
> > Frank
> >
> > Big or small, a challenge requires the same commitment to resolve.
> > Registered Linux User # 324213
> >
> > Eric Huff wrote:
> >> Did anyone ever come up with a solution to the screwy df output?
> >>
> >> /dev/ide/host0/bus0/target0/lun0/part13  1.8G  1.2G  642M  66%
> >> /stuff
> >>
> >> I saw this go by way back when in 9.2, i ended up skipping 9.2.
> >>
> >> I did look thru the archive.  I thought someone had a fix or script
> >> or something to make it look like it used to, but i couldn't find
> >> it.
> >>
> >> thanks,
> >> eric
>
> I'm starting to get used to the naming scheme, kinda wish it wasn't
> so long though :-)
>
> Heres a script I found in a forum post by Paul Morgan (I lost the
> original post). Might need some work to line things up a little but
> works ok.
>
> #!/bin/bash
> # Purpose:  Convert devfs device names in df output to legacy device
> names
> # Invocation:  mydf [DFOPTION]... [FILE]
> #       where DFOPTION is an option associated with the df command.
> # author:  paul morgan ([EMAIL PROTECTED]) 01/27/2004
> IFS=X
> df $*|\
> while read dfline ; do
>     { echo $dfline|grep -q '^/dev/.*/host[0-9]/bus[0-9]/.*'; }\
>         && eval "dfline=$(find /dev -name 'hd*' -lname ${dfline#/dev/})"
>     echo $dfline
> done
>
>
> I named it "mydf" made it executible and put it in my /home/user/bin.
>
> Mike

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to