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:l...@netis.ru] Sent: Friday, April 18, 2014 8:44 AM To: Mütze, Tilo, NMD-C4.2 Cc: lftp@uniyar.ac.ru Subject: Re: [lftp] lftp find command and patterns/asterisk On Tue, Apr 15, 2014 at 11:21:30AM +0000, tilo.mue...@bertelsmann.de 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 lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp