Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site hplabsc.UUCP Path: utzoo!decvax!ucbvax!hplabs!hplabsc!quan From: quan@hplabsc.UUCP (Suu Quan) Newsgroups: net.unix Subject: pipes within a 'find' command Message-ID: <686@hplabsc.UUCP> Date: Fri, 26-Sep-86 16:52:56 EDT Article-I.D.: hplabsc.686 Posted: Fri Sep 26 16:52:56 1986 Date-Received: Sat, 27-Sep-86 18:30:21 EDT Distribution: na Organization: Hewlett-Packard Laboratories Lines: 32 Keywords: unix pipe find exec This command did not work : find /usr/spool/eroff -print -exec tbl {} | eqn | eroff -ms \; -exec rm {} \; ^^^^^^^^^^^^^^^^^^^^^^^^ The underlined pipe is to properly print a file. Intention : scan all the files in directory /usr/spool/eroff print the file remove the file. Problem : as is, the command does not work. I tried using "" quotes, I tried using escape character \, I tried using parentheses (), I tried a combination of them. Nothing works. I finally resigned to do this : find /usr/spool/eroff -print -exec shell_script {} \; with the contents of the file 'shell_script' to be tbl $1 | eqm | eroff -ms; rm $1 Can somebody out there teach me how to use a pipe within a find command. I hate to maintain another shell script. Suu Quan phone (415) 857-3594 quan%hplabs@HPLABS.HP.COM !hpda!hplabsc!quan -- Suu Quan phone (415) 857-3594 quan%hplabs@HPLABS.HP.COM !hpda!hplabsc!quan