Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 2002 18:48:15 -0400 (EDT)
From:      Peter Leftwich <Hostmaster@Video2Video.Com>
To:        FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org>
Subject:   no xargs -i flag
Message-ID:  <20020924184251.J64949-100000@earl-grey.cloud9.net>

next in thread | raw e-mail | index | archive | help
I'm surprised that xargs has no flag for interactive mode (-i) so that the
command line will be echoed to the terminal asking [y/n/!] where y means yes
proceed and n means no stop now and ! would mean answer y to all remaining
promptings.

If the command passed to xargs *includes* something like "mv -i" will xargs
run interactively?

Sort of unrelated, but what if you wanted to pass something like `grep -i
something each_xarged_file | mail -s output $USER` as opposed to just `grep
-i something each_xarged_file`?  That is, how do you let xargs know where
to put the filename, if not at the end of the command line?  It isn't clear
from the manpage or examples I've browsed.  Thanks.

--
Peter Leftwich
President & Founder
Video2Video Services
Box 13692, La Jolla, CA, 92039 USA
+1-413-403-9555


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020924184251.J64949-100000>