Find a pattern in a file at a particular location


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 02-22-2009
Find a pattern in a file at a particular location

Hi all,

I have a question on how to search for a pattern in a file and return a value if it is present at that particular location.

How to read each line and each character for the pattern in the file of any format.

Eg for the file format:

attached the file
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
sed -- Find pattern -- print remainder -- plus lines up to pattern -- Minus pattern Klasform Shell Programming and Scripting 9 10-12-2015 05:00 PM
Find and Copy file of specific location yadavricky Shell Programming and Scripting 6 03-26-2015 01:54 PM
How to find a file with a specific pattern for current sysdate & upon find email the details? PreetArul Shell Programming and Scripting 4 10-03-2013 09:46 AM
Find file of particular pattern pracheth Shell Programming and Scripting 3 08-05-2013 04:12 AM
How to find a word and move it a specific location in xml file using perl? harpal singh Shell Programming and Scripting 3 03-07-2013 02:57 PM
Find the location of particular file and directory mahesh1987 UNIX for Dummies Questions & Answers 5 02-21-2013 12:35 PM
How to find a existing file location and directory location in Solaris box? buzzme Shell Programming and Scripting 1 01-10-2013 09:13 PM
Searching the file of below pattern through perl script from different location anuragpgtgerman Shell Programming and Scripting 3 11-15-2012 10:28 AM
How to find a file if we dont know exact location of file ? tusharjoshi UNIX for Dummies Questions & Answers 9 01-04-2012 05:37 PM
File created in a different location instead of desired location on using crontab archana.n Shell Programming and Scripting 1 10-20-2011 04:47 AM
To find a pattern in file pinnacle Shell Programming and Scripting 4 12-25-2010 03:16 PM
Put one string from one location to another location in a file jimmy_y Shell Programming and Scripting 1 11-24-2009 01:08 PM
How to find this pattern in a file Prateek007 Shell Programming and Scripting 1 10-17-2008 02:43 AM
how to find Script file location inside script asami Shell Programming and Scripting 10 03-15-2006 12:57 AM