Date: Wed, 12 Jan 2005 22:36:30 +0200 From: Toomas Aas <toomas.aas@raad.tartu.ee> To: questions@freebsd.org Subject: can't figure out an one-liner Message-ID: <41E58A4E.9000105@raad.tartu.ee>
next in thread | raw e-mail | index | archive | help
Hello!
I have a directory structure like this
/home
/joe
/peter
/bill
... etc
I'm trying to move some (but not all) subdirectories of /home to
/newhome, using tar. I'm doing this as root on FreeBSD 4.10, the shell
is csh. I'd like to get it done with one command line.
I'm trying variations of this command
# pwd
/newhome
# for luser in 'joe peter bill' { tar cf - -C /home $luser | tar xf - }
... but I keep getting error messages that luser is undefined.
What am I doing wrong?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41E58A4E.9000105>
