Re: lftp find command and patterns/asterisk
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <93C401AF9078C74BAC57293A376BFD0F9BA05791@GTLBMLXEN0001.bagmail.net> |
Hi Alexander, thank you. Can you please give an example how to couple find and grep in lftp for file patterns? Thanks and regards, Tilo -----Original Message----- From: Alexander V. Lukyanov [mailto:[email protected]] Sent: Friday, April 18, 2014 8:44 AM To: Mütze, Tilo, NMD-C4.2 Cc: [email protected] Subject: Re: [lftp] lftp find command and patterns/asterisk On Tue, Apr 15, 2014 at 11:21:30AM +0000, [email protected] wrote: > Hi, > we want to exit lftp processing, when a file pattern is not matching. > This exits with RC=8, if no hugo.xml file is present: > find hugo.xml || exit 8; find command expects a directory to dive into in the command line. Currently it cannot find a file by name, you can use grep for that. -- Alexander. _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp