If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
i want to search for ceratain words in a file like MILE in first column and assign its 5th column to a variable and if it don't find that word in other lines then i should assign '0' to a variable.
How to read lines 500 to 2000 in a 10000 record file and put in a seperate file using sed or awk.
Thanks
mark jason.
Quote:
Originally Posted by markjason
Thanks, but my question phrasing was wrong.
i want to search for ceratain words in a file like MILE in first column and assign its 5th column to a variable and if it don't find that word in other lines then i should assign '0' to a variable.
Hope this is clear
Thanks
mark