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 04-29-2009
topic32428285 topic32428285 is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 16
source.txt


/home/user1/public_html/test3
/home/user90/public_html/test9
.
.
.
/home/user650/public_html/test000


there are a lot of directories in source.txt --->maybe 1000 home directories

these directories have 1.txt, 2txt ~~25.txt , namely has a text file.
i want to randomly select 6 text file among these 25 files.

and i also want to rename randomly selected 6 text file as words1.word ~ words6.word .