Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
awk line number
Name: jayde Date: March 5, 2007 at 22:41:31 Pacific OS: windows xp CPU/Ram: p4 Product: wipro
Comment:
I need to extract data from a flat file with a package name(ABC.XYZ.W)with other packages too. Eg.
| 12345678| 993600| ABHUY | WIGB | 98765432| 995640| DSGFKDSJGS | R003 #EOD * * # 4 COUNTRIES'WEIGHT DNCA.CTY.W 20070131 # 1 Calculation Date calc_date D 8 0 # 2 MSCI Index Code msci_index_code N 6 0 # 3 ISO Country Symbol ISO_country_symbol S 3 0 # 4 Country Weight country_weight N 8 4 * # 1 2 3 4 SSL>>>>>>>SSV>>>>>SSL>>SSV>>>>>>> | 20123131| 106330| AU | 3.1398 | 20050131| 106330| CA | 4.1201 | 26701315| 106330| CH | 3.9537 | 20078931| 106330| DK | 0.4766 | 20056131| 106330| GB | 13.3372
The main file calls a txt file with using awk commands to extract the data through the command.
Summary: I am attempting to find a particualr line in a file and then replace it. Unfortunatly i can only guaruntee the content of the line prior to the one i am trying to edit. I have used grep -n and a cut...
Summary: Hello, I have a data file I'm searching. I know the line numbers that the data I want is in. I now want to extract only those lines in the file and output them to a new file. How do I do that using...
Summary: No, this isn't about applying line numbering to the left margin of VI. I recall being able to get a simple line number, at the bottom of my vi editor, that told me which line I was presently working ...