Script to automatisation

view story

http://stackoverflow.com – Now I use terminal to decode some binary files, I do it one by one. This command I use to decode: cat 201301101536_00240349.cdr | ./huawei2text.pl > ~/Desktop/201301101536_00240349.txt && cat ~/Desktop/201301101536_00240349.txt| tr "," "\n" > ~/Desktop/out_201301101536_00240349.txt I have a folder where I will get new files every minute. All these files I have to decode. How can write a script to decode every file automatically? What is better and easier to use? For example, if I need to start it once and it will do it itself? The problem is that (HowTos)