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.

Reply via email to