[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

find a row base on record id

Hello,
Trying to find a record base on the first 5 positions, such as T70ST.  Once this is determined then pull a field base on position, suchs 30th through 40th.

Using `head -1 $file | cut -c46-75`  to pull informtion from the first row.

I am thinking something like,
`XXXXX =T20ST  $file | cut -c30-40`  ,

Thanks,
BJE
0
bje
Asked:
bje
1 Solution
 
ozoCommented:
grep '^T70ST'  $file | cut -c30-40
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now