Current program can work on Linux since it is a shell script. It would be better to have a Perl code too.