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 -->
  #1 (permalink)  
Old 04-23-2009
topic32428285 topic32428285 is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 16
random select text file ranamed

i want to need script..



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




read source.txt and cd /home/user**/public_html/***
and there is 1.txt, 2txt ~~25.txt
and select 6 text files randomly among the 1.txt ,2.txt ~~ 25.txt
selected 6 text files be renamed word1.words , word2.words ~~ word6.words in this pattern..