Re: Bash programming, copy only onefile?

2004-08-24 Thread Giorgos Keramidas
On 2004-08-24 17:15, Nathan Kinkade <[EMAIL PROTECTED]> wrote: > On Wed, Aug 25, 2004 at 12:16:17AM +0200, Joachim Dagerot wrote: > > A quiz easy to write, hard to answer? > > > > In bash, how can I write a command that moves the oldest file in a > > directory to a new direction? > > Here is one po

Re: Bash programming, copy only onefile?

2004-08-24 Thread Nathan Kinkade
On Wed, Aug 25, 2004 at 12:16:17AM +0200, Joachim Dagerot wrote: > A quiz easy to write, hard to answer? > > In bash, how can I write a command that moves the oldest file in a > directory to a new direction? Here is one possible way, certainly there are many others: # ls -t /path/to/dir | tail -