BrettSheleski / comchap

Commercial detection script to add chapters into video file
MIT License
136 stars 26 forks source link

awk command needs an extra space #24

Open DrCocoaPuffs opened 6 years ago

DrCocoaPuffs commented 6 years ago

Lines 135, 136 should have a space after -v -- without it on MacOS, awk version 20070501, I get this error: awk: invalid -v option

This is how it should be:

end=awk -v p="${line[0]}" 'BEGIN{printf "%.0f" ,p*1000}' startnext=awk -v p="${line[1]}" 'BEGIN{printf "%.0f" ,p*1000}'