Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Last time, I get some advises from here that how to grep Duration from Video files in Linux. But this time, I need Windows version of that.

My Linux Command was

ffmpeg -i file.ts 2>&1 | grep Duration | cut -d ' ' -f 4 | sed s/,//  

it works nice. Otherwise, in Windows, since there are no 'grep' and 'cut', this command does not work.

So I have searched and found 'findstr' command. However I could not find replacement of 'cut'. Is there anything replace able command?

PS> I need egrep function too. I thought that findstr command can not treat plural arguments, right? :D

Thanks

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.