![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| script to find the average number or files? | bbbngowc | Shell Programming and Scripting | 2 | 03-27-2008 12:57 PM |
| delete and move number forward..in file | happyv | Shell Programming and Scripting | 6 | 02-28-2007 03:39 AM |
| awk script to find the number of files | uni_ajay_r | Shell Programming and Scripting | 4 | 10-31-2006 06:58 PM |
| C Shell Script to convert a number into minutes | Ringo | Shell Programming and Scripting | 1 | 08-07-2003 01:24 PM |
| Script to move trace files | ST2000 | Shell Programming and Scripting | 4 | 11-21-2002 12:33 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
I need to move a certain number of files every 10 minutes from one folder to another. I have written the script below, however its not working, please advise. #! /bin/ksh start() { mv /test1/$(head -1000 /movetst) /test2/ sleep 600 } stop() { exit } ls ti* > /movetest count = cat /movetst | wc -l if [ $count -eq 0 ] then start else stop fi Thanks&Regards, Amit |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|