From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <6a3ae47e1001220944v34a952ebv23388e2aaab247a1@mail.gmail.com> <4B59E982.1080009@comfortstore.net> <20100122181931.GA5971@wyrm.eecs.umich.edu> <13426df11001221042l69c06a27q25e5d8d803cb90f4@mail.gmail.com> <201001221937.aa83108@salmon.maths.tcd.ie> Date: Fri, 22 Jan 2010 14:16:15 -0600 Message-ID: From: Jason Catena To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] find command reloaded Topicbox-Message-UUID: c3b19922-ead5-11e9-9d60-3106f5b1d025 Recursively list only files; grep them with g to get full path, filename, and line number; protect against John's semicolon trick by quoting each file. walk -f | sed 's,^,g '^$1^' '',;s,$,'',' | rc walk apparently completely omits from its output files with a single-quote in their names, and does not quote files with embedded semicolons. ls lists them both quoted, with the embedded single-quote doubled. All this tested in p9p.