The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-15-2006
mab_arif16 mab_arif16 is offline
Registered User
  
 

Join Date: May 2006
Posts: 14
Hi thanks for reply
I have like 5 files(*.txt) in the directory
I want to move only the oldest file in the order of creation to another directory .
I am trying to use
mv (ls -tr *.event |head -1) /arif/temp/ in bash shell
I need help to correct the syntax of this command if my idea is right .

Last edited by mab_arif16; 05-15-2006 at 01:57 PM..