Thanks, as I write in first message that functionality may be useful more than on one case. Also may be usefull named pipe or socket IPC with user process, in this way your second tip will be work.
If there is no simple way to do it I will think about patches or about extension lftf functionality by modules. Thanks for ideas. On Tue, Oct 10, 2006 at 02:59:26PM -0400, Andrew Witt wrote: > I have another idea. If the reason you are using "-l" is > because you want the details of each listed directory, then > I don't see a way to do it, except to write a patch for a > new option for 'cls' which will list only directories. > > But! If the reason you are using the "-l" is only to get > the 'd' at the front of the line so you can match it with > grep, and if what you -really- want is just the names of > all the directories inside of $1, $2, $3, etc., then these > sorts of commands might give you what you want: > > lftp somesite.org:/> glob -d echo * > lftp somesite.org:/> glob -d echo */* > lftp somesite.org:/> glob -d echo a*/* > lftp somesite.org:/> glob -d echo b*/* > lftp somesite.org:/> glob -d echo backup*/* > > In other words, the above commands -do- filter so that what > they return are directories, but the above commands -do not- > put the results one-per-line. -- Wbr, Stan. S. Krupoderov mailto:[EMAIL PROTECTED]
