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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

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