Re: How to extract information from large file based on search pattern

2015-10-23 Thread Christian Brabandt
Hi pra007! On Do, 22 Okt 2015, pra007 wrote: > I am using vim for windows > > I have large (800 mb plus) file containing following formate > > the file is space separated > > 8232394 06774483 N 19850910 19870818 19910818 EXP. > 8309716 06774483 N 19850910 19870818 19910319 REM. > 4687262

Re: How to extract information from large file based on search pattern

2015-10-23 Thread pra007
Grep just worked fine. Thaks all for your great help -- View this message in context: http://vim.1045645.n5.nabble.com/How-to-extract-information-from-large-file-based-on-search-pattern-tp5726122p5726126.html Sent from the Vim - General mailing list archive at Nabble.com. -- -- You received

Re: Clipboard copy and paste

2015-10-23 Thread S Python
> Ah, then you want the "+ register. On X systems (Linux, BSD, etc), > there are two clipboards[*], one is the "primary selection" > clipboard, accessed with "* as you mention. This is the one that is > also fed by selecting things in a terminal and retrieved by using > the middle-mouse. The

Re: How to extract information from large file based on search pattern

2015-10-23 Thread LCD 47
On 23 October 2015, Christian Brabandt wrote: > Hi pra007! > > On Do, 22 Okt 2015, pra007 wrote: > > > I am using vim for windows > > > > I have large (800 mb plus) file containing following formate > > > > the file is space separated > > > > 8232394 06774483 N 19850910

Re: How to extract information from large file based on search pattern

2015-10-23 Thread Charles E Campbell
LCD 47 wrote: > The easy way: > > fgrep -wf small_file.txt big_file.txt > I'd like to expand a bit on what LCD mentioned: fgrep will build a finite state automaton to do the matching as if it was running all the matching in parallel; it will find matches with one pass, no backing up,

Re: How to extract information from large file based on search pattern

2015-10-23 Thread Christian Brabandt
On Fr, 23 Okt 2015, LCD 47 wrote: > On 23 October 2015, Christian Brabandt wrote: > > On Do, 22 Okt 2015, pra007 wrote: > > #v+ > > 0 14908 chrisbra@debian /tmp % awk 'NR==FNR {a[$1]} > [...] > > This reads the big file in memory. Possibly not the best approach > with

How to extract information from large file based on search pattern

2015-10-23 Thread pra007
I am using vim for windows I have large (800 mb plus) file containing following formate the file is space separated 8232394 06774483 N 19850910 19870818 19910818 EXP. 8309716 06774483 N 19850910 19870818 19910319 REM. 4687262 06908244 N 19860917 19870818 19990815 EXP. 4687262 06908244 N