[Solved] DOS to Unix Help

I am in the process of converting a batch script into a shell script for CentOS but am a complete Unix newb.

I have the follow Windows batch code:

for /f %%a in (C:\STEAMINVITE\extractor\workfile3.tmp) do C:\Python27\Python.exe C:\STEAMINVITE\extractor\sidconv.py %%a > C:\STEAMINVITE\extractor\workfile.txt

I do not have the slightest idea how I would get this doing the same function in Unix.

Many thanks in advance.

 
while read a
do
/path/of/python /path/of/sidconv.py "$a" >> /path/of/workfile.txt
done < /path/of/workfile3.tmp

Many thanks. Worked perfectly. :b: