bondtrails
Technical User
Hi everyone,
I am a relative newbie and have diligently been reading up on grep, sed and awk (and a few other unix goodies).
It seems that searching and extracting is done mainly by pattern matching. But what if I want to do a search on some fixed locations within a file.
For example: If i want to extract all records of a file that contain "Detail" in locations 57-62 of the record. Or how to insert commas (,) at locations 12, 18,22. Or how to search for records that contain "HiLife" in non-consecutive locations 25,26,29,33,34,35.
How to do??
--Bondster!!
I am a relative newbie and have diligently been reading up on grep, sed and awk (and a few other unix goodies).
It seems that searching and extracting is done mainly by pattern matching. But what if I want to do a search on some fixed locations within a file.
For example: If i want to extract all records of a file that contain "Detail" in locations 57-62 of the record. Or how to insert commas (,) at locations 12, 18,22. Or how to search for records that contain "HiLife" in non-consecutive locations 25,26,29,33,34,35.
How to do??
--Bondster!!