Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#34618 - 18/07/2001 01:32 Beginner question! Find file command..
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
A few days ago, I did install on my MK2 the menusort hack. This is working fine (thanks). But now I forgot where did I put this file on my Empeg. Is there a possiblity to find this file? I mean a command like find "menusort".

Sorry for this beginner question! Don't hit me!

Thanks...

cm
_________________________
crazymelki.com

Top
#34619 - 18/07/2001 02:32 Re: Beginner question! Find file command.. [Re: crazymelki]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
find / -name menusort -print

but the command is not in minimum Linux that is by default installed on empeg.

Hmmm....

Try this:

cd /
ls -lR | more

Then, from the --More-- prompt, type /, then string you are looking for. More will reposition to the first line containing it. n will find the next. Since default more does not seem to support back scrolling (although help screen says it does), you will not see in which directory you are. Use = to see the linenumber, then redo ls -lR | more and scroll manually to within screen or two of that line to see the directory.

Ufff. Anybody has a simpler idea? Apart from installing Debian distro, which I recommend.



Dragi "Bonzi" Raos
Zagreb, Croatia
Q#5196, MkII#80000376, 18GB green
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#34620 - 18/07/2001 02:45 Re: Beginner question! Find file command.. [Re: bonzi]
borislav
addict

Registered: 30/04/2000
Posts: 420
Loc: Sunnyvale, CA, USA
Ufff. Anybody has a simpler idea?

ls -R / | sed -e/:$/h -eG -e's/\n/ is in /' | grep menusort

I used this question as an excuse to find out more about sed.

Anyway, there aren't that many directories on the empeg by default. Systematic use of "cd /", "ls", "cd dirname", and "cd .." will work too.

Borislav



Top
#34621 - 18/07/2001 02:59 Re: Beginner question! Find file command.. [Re: borislav]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Brilliant! Now I will have to go and read that sed man page (as I don't understand your script)...

Dragi "Bonzi" Raos
Zagreb, Croatia
Q#5196, MkII#80000376, 18GB green
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#34622 - 18/07/2001 11:49 Re: Beginner question! Find file command.. [Re: borislav]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
Borislav,

You are a profi....

After a few seconds I got the following info on my Empeg:

menusort is in /usr/local/displayserver:

How usefull! :-)))

Thanks..

cm
_________________________
crazymelki.com

Top