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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!