I have written a small batch script which copies files from the a folder and paste in other folder with delay of 10 seconds. I want to convert it to shell script, but not getting the way to do that. Please help me. The below is the batch script that i use:
@echo off & setLocal EnableDELAYedExpansion
pushd "C:\Users\abc\Desktop\Test"
for /f "tokens=*" %%a in ('dir /b/a-d "leaderboard*.txt"') do (
copy "%%a" "C:\Users\abc\Desktop\Test\final\leaderboard.txt"
timeout 10
)
popd