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
Post a Comment