Stan. S. Krupoderov wrote:
> On Tue, Oct 10, 2006 at 08:52:31AM -0400, Andrew Witt wrote:
>
>>I suggest using a shell function.  e.g., for bash you would
>>do something like this in .bashrc in your home directory:
>
> It's good idea, but it not works for me,
> as function and as simple sh script.
>
> In shell environement we don't have cls command:
> And in lftp environement we don't have shell commands
>
> Any ideas?

Oh, sorry; I did not recognize 'cls' as a sub-command of
lftp at first.  Would this work? :

lsdirs()
  {
  /full/path/to/lftp -c "cls -l $1 $2 $3 $4 | grep '^d'"
  }

--
Andrew Witt
Sr. Software Engineer
Revol  -  www.revol.us  -  Freedom is calling

Reply via email to