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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -