![]() |
I understood that part a long time ago.
Post the 20 lines you want, along with 20 lines you don't want, and tell me how you decide. |
for example the terminal contains of any text message :
and i want only the bold lines ------------------------------------------------------------------------- Abu Dhabi: The Middle East and North Africa (Mena) is set to play a decisive role in global crude oil supply as its market share is expected to swell to a record 44 per cent in 2030, according to an official Arab study. Saudi Arabia, the world's biggest exporter, could lift output to a staggering 18 million barrels per day, while war-battered Iraq could climb to eight million bpd. The UAE and Kuwait could lift crude output to an average 5 million bpd each, according to the latest bulletin from the 10-nation Organisation of Arab Petroleum Exporting Countries (Oapec).The projected capacity of nearly 36 million bpd for those four producers is more than double their current output of around 17 million bpd, including nearly 10.5 million bpd for Saudi Arabia. Their combined output, along with Iran's production, could surge to 44 per cent of the world's supply in 2030 from 35 per cent in 2004, the bulletin said. "Economic forecasts and research centres indicate that producing countries in the Middle East and North Africa will play a vital role in meeting world energy growth in the coming decades. They cite several factors including the vast size of their proven oil (and gas) reserves and their low production costs," the study said."Saudi Arabia in particular will play a pivotal role in meeting future oil requirements owing to its sizable production capacity." domestic consumptionThe study figures showed Saudi crude production would grow to nearly 18 million bpd by 2030 while Iraq's output could rise sharply if the "appropriate investments are undertaken and good progress is made in the country's political and constitutional process."Iraq's production could reach about eight million bpd by the end of 2030. While the UAE and Kuwait are predicted to achieve 5.1 million bpd and 4.9 million bpd respectively.As a result, the Middle East (including Iran) and North Africa will account for a record 44 per cent of the world's crude oil production by 2030, compared with 35 per cent in 2004," the study said. It noted that despite the forecast, increases in the region's domestic energy consumption are in keeping with the high economic and population growth rates, production growth will exceed its consumption growth. -------------------------------------------------------------------------- this is an example,, but the real termimal more big..the blod line what i want and skip the other NOTE: the blod line is updated daily so how can i know the lines numner |
So you are dealing with news articles. There are a few problems with what you posted.
1. Why do you want those particular lines? They don't contain any critical information, do not summarize the article, and put together do not make sense. 2. The bold parts are not really lines, but part of a paragraph. 3. You say the bold lines are updated daily. The other lines are not?? I don't think so. Changing only the bold lines in your example would not make any sense. The entire article would be rewritten rather than changing specific lines. |
my friend my question very simple and clear..
HOW can i show the lines number for any terminal..??!! i can by: vi (file name) then perss (Ctrl + g) this is fine..but show u the line number on the corser so can i show all lines number on one time. |
Hayne answered that question in post #8. How you show a line number in a text editor is dependent on the text editor. Read the appropriate manual page for the command.
If you won't put up the real data, along with your reasons for choosing the lines, then we can't help you. |
in fact i can't show the real data becouse it is so secure,,,,
but thanks for your insist for helping.. im sure i will need u again thanks |
Quote:
|
ugg, people just need to learn how to program
|
Quote:
cat -n file_name to get the line numbers. Mrjas I guess what everyone is asking you, is how do you know which phrases out of the file you want. You apparently are trying to write a script to extract the phrases out of the files. Do you want to use the same script on different occasions when the data changes, or do you want to write different scripts everytime the data changes. Will the phrases you want be in the exact same location, when the data changes? -- |
finally..
that's what im lookingfor.. thank you all and thank you cb 2005 |
I doubt that would work.
If you run it on your Example, it would only number 5 lines as existing. |
No dear your doubt not right..
this command work well..i tried it |
So the example was nothing like the text you where actually using it on??
|
| All times are GMT -5. The time now is 05:33 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.