The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX Desktop for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 10-26-2005
vgersh99's Avatar
vgersh99 vgersh99 is offline
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,002
when you say 'move' I assume the output of the SQL script is a list of FILENAME - 3 per line.
Code:
#!/bin/ksh

pav='/home/pav'
ssk='/home/ssk'

yourSQLscript | while read one two three junk
do
   mv "${one}" "${pav}"
   mv "${two}" "${ssk}"
   mv "${three}" "${ssk}"
done
Reply With Quote