# -*- coding: utf-8 -*-
"""
Created on Wed Aug 22 18:54:26 2018

Skripta za promjenu znaka : u - zbog lakšeg kasnijeg imenovanja datoteka i direktorija.
@author: luka
"""

import fileinput
from subprocess import call
import os
from os.path import join
    
lab_dir = '/home/luka/Desktop/Wav_uncut/lab/'

for root, dirs, files in os.walk(lab_dir):
    for f_lab in files:
        data = open(lab_dir+f_lab).read()
        data = data.replace(':', '-')
        f = open(lab_dir+f_lab, 'w')
        f.write(data)
        f.close()
        
