Read a specific word in a file PERL using regex -


i have configuration file name movie.conf , want read specific word in file. configuration file looks :

#this movie setting #read movie source  ffmpeg -f movie4linux2 -i /folder/movie1 -vcodec libx264 -preset ultrafast -tune zerolatency -s qvga -r 30 -qscale 5 -an -flags low_delay -bsf:v h264_mp4toannexb -maxrate 750k -bufsize 3000k -rfbufsize 300k -f h264 

how can reads /folder/movie1 part using regex? can show me how. know using split can done. if want use regex on this? appreciated.

if (/^ffmpeg.*-i\s+(\s+)/) {     print $1; } 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -