perl - Extract a substring from a text file using a positional argument -


i extract specific line awk 'fnr == 6 {print $1}' infile.txt. suppose line qwkejqkskmaojisdkjfsdwesa. should pipe awk in order extract characters in between 10th , 15th positions of string?

print substr($1,10,6) 

check math depending "between" means you.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -