Re: lftp and patterns
Alexander Lukyanov <[email protected]>
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <CANnoEwq5aPtngntd3kzc-1WrcBcNZ4ZPj-a92jEX0AdT9H2ghw@mail.gmail.com> |
Which backend protocol do you use? If ftp, then ls arguments are wholly passed to server side as LIST argument. If other protocols, then most probably you may only specify a directory to list. There is another command - cls - which handles arguments locally and provides better functionality compared with plain "ls". Try it. Exit code may be not that you want though. 2014-04-15 17:27 GMT+04:00 <[email protected]>: > Hi, > > is it somehow possible, to list files by using a pattern like: > > ls *.csv > > dir *.csv > > > > And if no files are found, exit that ls or dir command with an exit code > <> 0? > > > > Regards, > > Tilo > > > > _______________________________________________ > lftp mailing list > [email protected] > http://univ.uniyar.ac.ru/mailman/listinfo/lftp > > -- Alexander. _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp