Re: setting default directory ACLs using xargs

2010-02-13 Thread Karl Vogel
>> On Fri, 12 Feb 2010 21:08:43 -0800, >> Doug Sampson said: D> This is what led me to the workaround of: D> $ getfacl /aclTest/ | setfacl -d -b -n -M - /aclTest/ D> which actually works for me. I do dread the idea of having to manually D> apply this to all existing directories in the /dat

Re: setting default directory ACLs using xargs

2010-02-13 Thread perryh
bove command > modified to work with xargs, I end up with an error message ... Two possibilities come to mind: * Try using the "-L 1" switch to cause xargs to run a separate command instance for each input value. * You may have run into one of the rare situations where "find ... | x

setting default directory ACLs using xargs

2010-02-12 Thread Doug Sampson
with xargs, I end up with an error message: r...@aries:/data/Products/RSVP# find . -type d -print0 | xargs -0 getfacl | setfacl -d -b -n -M - setfacl: line too long in - r...@aries:/data/Products/RSVP# Okay, that doesn't work. What is the output of... r...@aries:/data/Products/RSVP# find .

RE: Copying a directory tree (was: xargs)

2008-08-21 Thread Marcel Grandemange
Thank you all! And im on my way thanks to greate response! -Original Message- From: Oliver Fromme [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2008 2:42 PM To: freebsd-questions@FreeBSD.ORG; [EMAIL PROTECTED] Subject: Copying a directory tree (was: xargs) Marcel Grandemange

Copying a directory tree (was: xargs)

2008-08-21 Thread Oliver Fromme
Marcel Grandemange <[EMAIL PROTECTED]> wrote: > I need to copy an entire BSD installation except > the /mnt directory to /mnt/pc You don't need xargs for this. # cd / # find -Ed . -regex '\./(mnt|dev)' -prune -or -print0 | cpio -dump0 /mnt/pc If you have procfs

Re: xargs

2008-08-21 Thread Steve Bertrand
Marcel Grandemange wrote: I need to copy an entire BSD installation except the /mnt directory to /mnt/pc # rsync -arcvv --exclude=/mnt / /mnt/pc Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-q

xargs

2008-08-21 Thread Marcel Grandemange
Thank You For Help In The Past but give run into a new issue. I need to copy an entire BSD installation except the /mnt directory to /mnt/pc Now ive looked everywhere on net for examples, yet all don't work. What I did try do was following.. Cd / Ls | grep -v proc | xar

Re: ye ol xargs unterminated quote error, thought it was gone?

2005-02-11 Thread Lars Kristiansen
> when I use the usual: > > find . -type f -print | xargs grep -sl foobar Have you tried: find . -type f -print0 | xargs -0 grep -sl foobar > > i get; > > xargs unterminated quote error and have to use: > > find . -type f -print | sed 's/^\(.*\)$//'\1'/

ye ol xargs unterminated quote error, thought it was gone?

2005-02-11 Thread Ken Hawkins
when I use the usual: find . -type f -print | xargs grep -sl foobar i get; xargs unterminated quote error and have to use: find . -type f -print | sed 's/^\(.*\)$//'\1'/' | xargs grep -sl foobar to quote the output from find. anyone know a more elegant sol

Re: Basic Question (I think): Upgrading xargs

2004-07-14 Thread Greg 'groggy' Lehey
[Format recovered--see http://www.lemis.com/email/email-format.html] Single line paragraphs. On Thursday, 15 July 2004 at 13:56:32 +1000, Scott Moss wrote: > Hi, > > Just wondering what the easiest way to upgrade "xargs" would be. I'm > running 4.5-RELEASE (yes I kn

Basic Question (I think): Upgrading xargs

2004-07-14 Thread Scott Moss
Hi, Just wondering what the easiest way to upgrade "xargs" would be. I'm running 4.5-RELEASE (yes I know -_-, new build is coming with the new machine). Anyhow I've been constantly getting errors when ever I try to make anything from ports and it seems to be xargs being

Re: Shell guru needed.(xargs question)

2003-01-03 Thread David S. Jackson
On Fri, Jan 03, 2003 at 10:55:09AM -0500 Danny <[EMAIL PROTECTED]> wrote: > Could you please give another realworld example of using xargs and > your definition of it. I had a glance through man xargs, but I enjoy input > from humans that use it as well. :) Xargs is pretty nea

Re: Shell guru needed.(xargs question)

2003-01-03 Thread Danny
Could you please give another realworld example of using xargs and your definition of it. I had a glance through man xargs, but I enjoy input from humans that use it as well. :) Thanks. - Original Message - From: "David S. Jackson" <[EMAIL PROTECTED]> To: "mike&qu

Re: xargs -J

2002-11-26 Thread Philip Hallstrom
> At 10:10 PM -0500 11/25/02, David S. Jackson wrote: > >Hi, > > > >I've been trying to use |xargs -J [] mv [] [].suffix > >but to no avail. Not to convince you to not use xargs, but you might look at the mmv port... mmv '*' '=1.suffix' -ph

Re: xargs -J

2002-11-26 Thread Garance A Drosihn
At 10:10 PM -0500 11/25/02, David S. Jackson wrote: Hi, I've been trying to use |xargs -J [] mv [] [].suffix but to no avail. I've tried |xargs -J mv \[\] \[\].suffix and variations but that doesn't seem to work either. It seems to work fine with the -i command under GNU xargs

Re: xargs -J

2002-11-25 Thread Conrad Sabatier
On 26-Nov-2002 David S. Jackson wrote: > Hi, > > I've been trying to use |xargs -J [] mv [] [].suffix > > but to no avail. > > I've tried |xargs -J mv \[\] \[\].suffix and variations but that > doesn't seem to work either. It seems to work fine with th

Re: xargs -J

2002-11-25 Thread Nathan Kinkade
On Mon, Nov 25, 2002 at 10:10:03PM -0500, David S. Jackson wrote: > Hi, > > I've been trying to use |xargs -J [] mv [] [].suffix > > but to no avail. > > I've tried |xargs -J mv \[\] \[\].suffix and variations but that > doesn't seem to work either. It s

Re: xargs -J

2002-11-25 Thread Duncan Anker
On Tue, 2002-11-26 at 13:10, David S. Jackson wrote: > Hi, > > I've been trying to use |xargs -J [] mv [] [].suffix > > but to no avail. > > I've tried |xargs -J mv \[\] \[\].suffix and variations but that > doesn't seem to work either. It seems to wo

xargs -J

2002-11-25 Thread David S. Jackson
Hi, I've been trying to use |xargs -J [] mv [] [].suffix but to no avail. I've tried |xargs -J mv \[\] \[\].suffix and variations but that doesn't seem to work either. It seems to work fine with the -i command under GNU xargs, but not under Freebsd. An example would be $

Re: du, find/xargs/sort, and MP3.tar

2002-10-24 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-10-23 17:05:48 -0400: > On 22 Oct 2002, Gary W. Swearingen wrote: > > Peter Leftwich <[EMAIL PROTECTED]> writes: > > > Then I thought I'd get crafty and > > > `tar tvf MP3.DONE0415021909MPT.tar > the-tarfile.out` thinking I > > > could later run things through `sort` but

Re: du, find/xargs/sort, and MP3.tar

2002-10-23 Thread Peter Leftwich
On 22 Oct 2002, Gary W. Swearingen wrote: > Peter Leftwich <[EMAIL PROTECTED]> writes: > > Then I thought I'd get crafty and `tar tvf MP3.DONE0415021909MPT.tar > > > the-tarfile.out` thinking I could later run things through `sort` but I am > > hung up on how to get similar output that shows the co

Re: du, find/xargs/sort, and MP3.tar

2002-10-22 Thread Gary W. Swearingen
Peter Leftwich <[EMAIL PROTECTED]> writes: > Then I thought I'd get crafty and `tar tvf MP3.DONE0415021909MPT.tar > > the-tarfile.out` thinking I could later run things through `sort` but I am > hung up on how to get similar output that shows the contents of MP3/. tar cf - MP3/ | tar tvf - >the-m

du, find/xargs/sort, and MP3.tar

2002-10-22 Thread Peter Leftwich
> the-tarfile.out` thinking I could later run things through `sort` but I am hung up on how to get similar output that shows the contents of MP3/. # find MP3/ -type f | wc -l OR? # find MP3/ -type f -exec ls -al {}\; | more OR? # find MP3/ -type f -print | xargs or something like

Re: no xargs -i flag

2002-09-27 Thread Oliver Fromme
Peter Leftwich <[EMAIL PROTECTED]> wrote: > 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 rem

Re: no xargs -i flag

2002-09-25 Thread Peter Leftwich
tju.org/weblog/weblog.php > bash$ :(){ :|:&};: | Interested in MUDs? http://www.FatalDimensions.org/ *DUrr...* It is [whispered innocuously] in the xargs manpage! -t Echo the command to be executed to standard error immediately before it is executed. Ok now, everyone write &qu

Re: no xargs -i flag

2002-09-25 Thread Peter Leftwich
On Wed, 25 Sep 2002, Giorgos Keramidas wrote: > On 2002-09-24 18:48, Peter Leftwich <[EMAIL PROTECTED]> wrote: > > 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

Re: no xargs -i flag

2002-09-24 Thread Edwin Groothuis
On Tue, Sep 24, 2002 at 06:48:15PM -0400, Peter Leftwich wrote: > 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

Re: no xargs -i flag

2002-09-24 Thread Giorgos Keramidas
On 2002-09-24 18:48, Peter Leftwich <[EMAIL PROTECTED]> wrote: > 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 answe

no xargs -i flag

2002-09-24 Thread Peter Leftwich
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

Re: using xargs to untar

2002-09-22 Thread Tim Peters
> > # find . -type f > ./z_flash-0.4.10.tgz > ./z_yelp-1.0.6.tgz > ./z_plugger-4.0.tgz > > # find . -type f | xargs -J G tar zxf G > tar: ./z_yelp-1.0.6.tgz not found in archive > tar: ./z_plugger-4.0.tgz not found in archive > > What I am trying to do is the equiv

Re: using xargs to untar

2002-09-22 Thread Dan Nelson
; # find . -type f > ./z_flash-0.4.10.tgz > ./z_yelp-1.0.6.tgz > ./z_plugger-4.0.tgz > > # find . -type f | xargs -J G tar zxf G > tar: ./z_yelp-1.0.6.tgz not found in archive > tar: ./z_plugger-4.0.tgz not found in archive try find . -type f | xargs -n 1 tar

using xargs to untar

2002-09-22 Thread Peter Leftwich
. -type f | xargs -J G tar zxf G tar: ./z_yelp-1.0.6.tgz not found in archive tar: ./z_plugger-4.0.tgz not found in archive What I am trying to do is the equivalent of the following: # tar zxf file1.tgz ; tar zxf file2.tgz ; tar zxf file3.tgz Is this possible with xargs? I was using "G"