Find

Advertisement

Guest
Guest

Find

I administer several boxes and love WinSCP. The only problem is that sometimes I don't remember where I left a file, or someone wants a file, I have to view each and every dir and subdir where I think it might be. As you can guess, this is a major headache. Any chance the "Find" option could be added to WinSCP to make it nearly perfect?

Thanks.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,501
Location:
Prague, Czechia

Re: Find

There are two aproaches for implement find:
  • Read all directories/subdirectories using LS and find file in result (client-driven search). This is reliable, but slow.
  • Use some command on server that finds files. This should be fast. Problem is that there are many incompatibilities between different servers/shells. I have problem adding any new command, because I don't have enough experiences with different hosts and I don't have access to enough diferent servers to test it.
    So my question is: Can someone recommend me a best command to find file, that would work reliably on any UNIX server/shell :?:

_________________
Martin Prikryl

Reply with quote

Guest

Re: Find

martin wrote:

So my question is: [b]Can someone recommend me a best command to find file, that would work reliably on any UNIX server/shell :?:

I'm no expert, but 'locate' works well on certain linux machines. I doubt it is well supported across _all_ platforms but couldn't you create an alias for a user's 'find' command. Then for us linux users we could set the alias to 'locate'.

Reply with quote

adbon
Guest

Re: Find

[quote="Anonymous"]

martin wrote:

So my question is: [b]Can someone recommend me a best command to find file, that would work reliably on any UNIX server/shell :?:

> I'm no expert, but 'locate'
> works...

I notice that "locate" is often
not set up correctly. I use systems other than linux, too.

the Unix "find" command has worked reliably for
a very long time. I suggest poping a dialog box: find: [ ] then taking the string
and doing "find . -name '[the string]' -print" where "." means
the current directory, and putting the results in a selection list.
give the option to chdir to the
directory above a file, as well
as to move/copy drag/drop the file.

Thanks, by the way, WinSCP is a wonderful help
in making my users be able to function with remote machines.

Adbon

Reply with quote

Advertisement

You can post new topics in this forum