Alright, so I know it is quite simple to print specific arguments of a line using $:
$ cat file
hello world
$ awk '{print $1}' file
hello
But what if I want to print chars 2 through 8? or 3 through 7? Is that possible with awk?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
the syntax for substr() is
substr(string,start index,length)