Solved

find a row base on record id

Posted on 2013-11-14
1
151 Views
Last Modified: 2013-12-09
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
Comment
Question by:bje
1 Comment
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 39649388
grep '^T70ST'  $file | cut -c30-40
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now