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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

android - Unable to generate FCM token from dynamically instantiated Firebase -