Need simple python perl or bash script ASAP !!

Completed Posted 6 years ago Paid on delivery
Completed Paid on delivery

I have folder containing many small files... I need a script that will for every file run the following commands:

1. text is in such format:

okreœlenie;;

tej;;

wiêkszoœci;;

podwójn¹;;

wiêkszoœci¹;;

g³osów;;

i;;

stosowanie;;

podwójnej;;

wiêkszoœci;;

w;;

odniesieniu;;

do;;

wszystkich;;

rozstrzygniêæ;;

zgromadzenia;;

.;;

proponuje;;

siê;;

aby;;

zarz¹d;;

zwi¹zku;;

metropolitalnego;;

liczy³;;

piêciu;;

cz³onków;;

zamiast;;

trzech;;

aby;;

unikn¹æ;;

sytuacji;;

patowej;;

.;;

I need to have one sentence per line so remove ;; and put new line only when we see .;; and save each file to <old_file_name>.1spl

2. Then we convert it from WINDOWS-1250 to UTF and save as <old_file_name>.[login to view URL]

3. do on each file command: /home/nlp/opt/moses/bin/moses -f /home/nlp/Downloads/SMT_NORM/TAGG/model/moses.ini.1 < <old_file_name>.[login to view URL] > <old_file_name>.[login to view URL]

I need it asap

Bash Scripting Linux Perl Python UNIX

Project ID: #15410316

About the project

2 proposals Remote project Active 6 years ago

Awarded to:

$35 USD in 1 day
(60 Reviews)
5.4

2 freelancers are bidding on average $30 for this job

rsdsoftsl

Hello. Can develop PHP script which process files, converts from win-1250 to utf and run command you mentioned in an 1-2 hours. If it is ok for you ready to start right now. Relevant Skills and Experience php, data pr More

$25 USD in 0 days
(47 Reviews)
5.7