Peter, the names supplied were just to demonstrate the need... ITschak Mugzach *|** IronSphere Platform* *|* *Information Security Continuous Monitoring for z/OS, x/Linux & IBM I **| z/VM coming soon *
On Mon, Jan 24, 2022 at 10:50 AM Peter Sylvester <[email protected]> wrote: > On 24/01/2022 06:28, Itschak Mugzach wrote: > > Sorry: find / -name *.txt -exec echo {}; echo {} >> all.txt ; cat {} >> > > all.txt \; > > find / -name '*.txt' -exec sh -c 'echo {}; echo {} >> all.txt ; cat {} > >>all.txt' \; > > might worlk, (but as already said, all.txt is probably not the best choice > for a name.) > > /PS > > > > > This doesn't work with or without quotes. > > > > *| **Itschak Mugzach | Director | SecuriTeam Software **|** IronSphere > > Platform* *|* *Information Security Continuous Monitoring for Z/OS, > zLinux > > and IBM I **| * > > > > *|* *Email**: [email protected] **|* *Mob**: +972 522 986404 > **|* > > *Skype**: ItschakMugzach **|* *Web**: www.Securiteam.co.il **|* > > > > > > > > > > > > On Mon, Jan 24, 2022 at 7:27 AM Paul Gilmartin < > > [email protected]> wrote: > > > >> On Mon, 24 Jan 2022 07:17:17 +0200, Itschak Mugzach wrote: > >> > >>> Example: ls *.txt -exec echo {}; echo {} >> all.txt ; cat {} >> > all.txt \; > >>> > >> "ls" has no such operand as "-exec". Are you thinking of a "find" > command? > >> > >> -- gil > >> > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
