Question: Hello, using bash Linux I have multiple files from which I want from a specific line to extract from string $2 until the end of
Hello,
using bash Linux
I have multiple files from which I want from a specific line to extract from string $2 until the end of line or until the last string of line (it could be one more string after $2, or it could be more)
So what I thought is use awk, substr and index, but I dont know how to write the index part so it could print until the end of line or until the last string of line
awk {num=NR; var=substr($2,index ??)
Some help please. Thank you in advance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
