Re: lftp find command and patterns/asterisk

<[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.