can't figure out an one-liner

2005-01-12 Thread Toomas Aas
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

Re: can't figure out an one-liner

2005-01-12 Thread Nathan Kinkade
On Wed, Jan 12, 2005 at 10:36:30PM +0200, Toomas Aas wrote: 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

Re: can't figure out an one-liner

2005-01-12 Thread Warren Block
On Wed, 12 Jan 2005, Toomas Aas wrote: # 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? In csh, it's foreach, like this (tested): foreach luser (joe peter bill) echo $luser end The csh

Re: can't figure out an one-liner

2005-01-12 Thread Toomas Aas
Nathan Kinkade wrote: On Wed, Jan 12, 2005 at 10:36:30PM +0200, Toomas Aas wrote: 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. Are /home and /newhome