A Script For Repeatedly Copying And Deleting A File, With Counter
-----------------------------------------------------------------
#!/bin/bash
COUNT=0
until [ $COUNT -gt 1000000 ]; do
cp ~/burn/one/*.txt ~/burn/two
rm ~/burn/one/*.txt
let COUNT=COUNT+1
echo Value of count is: $COUNT
cp ~/burn/two/*.txt ~/burn/one
rm ~/burn/two/*.txt
let COUNT=COUNT+1
echo Value of count is: $COUNT
done