CN105183472A - Method and device for screening information in Linux system - Google Patents

Method and device for screening information in Linux system Download PDF

Info

Publication number
CN105183472A
CN105183472A CN201510561202.8A CN201510561202A CN105183472A CN 105183472 A CN105183472 A CN 105183472A CN 201510561202 A CN201510561202 A CN 201510561202A CN 105183472 A CN105183472 A CN 105183472A
Authority
CN
China
Prior art keywords
information
restrictive condition
fill order
linux system
information collection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510561202.8A
Other languages
Chinese (zh)
Other versions
CN105183472B (en
Inventor
幸华刚
万忠宏
熊伟
王立松
左红光
代丽华
吴蜀燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China National Petroleum Corp
BGP Inc
Original Assignee
China National Petroleum Corp
BGP Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China National Petroleum Corp, BGP Inc filed Critical China National Petroleum Corp
Priority to CN201510561202.8A priority Critical patent/CN105183472B/en
Publication of CN105183472A publication Critical patent/CN105183472A/en
Application granted granted Critical
Publication of CN105183472B publication Critical patent/CN105183472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method and device for screening information in a Linux system. The method comprises the steps that limiting conditions are set as visual keys, and according to types of the limiting conditions, a preset number of execution commands are related to the limiting conditions; the execution command related to the first limiting condition is called by responding to the first limiting condition in an operation instruction; according to the called execution command related to the first limiting condition, a first information set is obtained; whether the first information set meets the preset conditions or not is judged; if not, the execution command related to the second limiting condition is called by responding to the second limiting condition in the operation instruction; the execution command related to the second limiting condition is utilized for screening the first information set, and a second screened information set is obtained. According to the method and device for screening information in the Linux system, information in the Linux system can be conveniently screened as needed.

Description

The method of information sifting and device in a kind of linux system
Technical field
The application relates to computer systems technology field, particularly the method for information sifting and device in a kind of linux system.
Background technology
Linux as one stable and efficiently computer operating system be widely used always.There is very many fill orders in linux system itself, application software under this system and application program are also run based on fill order mostly, these fill orders have abundant parameter and combine available, therefore, can realize various powerful function by fill order.
But, when utilizing these fill orders to carry out information sifting, often have the following disadvantages:
1, fill order is too many, and the spelling title of the quantity of parameters especially in fill order, usage form, array mode and corresponding function etc. are all very numerous and diverse, and user is difficult to all memories and skillfully uses.Particularly for the vast user getting used to the operation of Windows graphical interfacesization, not easy to operate especially, thus cause the power of application software to make full use of;
2, software existing capability is not enough, such as: fill order is only just performed usually after user initiatively input, and the object of process is often more single;
3, software function is generally in order to the particular demands meeting user is developed, and therefore, application surface relative narrower, in the process that user uses in reality, often needs many moneys software to cooperatively interact a certain work; Or, also have some function items compare shortcoming or have deviation with the individual demand of user, in the process that user uses in reality, need to be replaced by some function items in other software.
In order to overcome above deficiency, prior art has following two kinds of processing modes usually:
1, the source code of original software systems is directly revised.But which is only applicable to the software of increasing income, need secondary development personnel to have enough abilities carefully to study carefully original source code, understand fully the system architecture of software, data structure, operation flow, code logic, functions of modules, interface parameters etc., even carefully all need to know its function to every line code.This mode workload is large, and the cycle is long, and risk is high, after particularly revising core source code, cause existing function to occur mistake or fluctuation of service possibly, after manufacturer's standardized product upgrading, directly can not carry out covering upgrading, needs are reintegrated, and this situation will be catastrophic;
2, the script utilizing software itself to provide or external DLL (dynamic link library) carry out secondary development.But which is only applicable to the software that those provide script or external interface, support secondary development, original software can be regarded as the development kit that encapsulates some application function implementation procedure, need secondary development personnel to be familiar with the logic function, service condition, parameter meaning, mutual relationship etc. of associated script language or interface function.Whether this kind of mode be feasible depends on whether original software is supported script or whether provide external interface, due to the difference of script or interface language type, data platform, data layout, communications protocol etc., this secondary development mode makes each software collaboration work there is certain difficulty for the function integrating multiple existing software.
As can be seen here, when screening the information in linux system, all there is the problem of different aspects in these processing modes above-mentioned.For these problems above-mentioned, at present effective solution is not yet proposed.
Above it should be noted that, just conveniently to the technical scheme of the application, clear, complete explanation is carried out to the introduction of technical background, and facilitate the understanding of those skilled in the art to set forth.Only can not think that technique scheme is conventionally known to one of skill in the art because these schemes have carried out setting forth in the background technology part of the application.
Summary of the invention
The object of the embodiment of the present application is the method and the device that provide information sifting in a kind of linux system, can screen the information in linux system as required easily.
In a kind of linux system that the embodiment of the present application provides, the method for information sifting and device are achieved in that
A method for information sifting in linux system, comprising:
Restrictive condition is set to visual button, and according to the type of described restrictive condition, the fill order of predetermined number is associated on described restrictive condition;
In response to the first restrictive condition in operational order, call the fill order be associated with described first restrictive condition;
The fill order be associated with described first restrictive condition according to calling obtains first information collection;
Judge whether described first information collection meets pre-conditioned, if do not meet, then in response to the second restrictive condition in described operational order, and call the fill order be associated with described second restrictive condition;
Utilize the fill order be associated with described second restrictive condition called to screen described first information collection, obtain the second information set after screening.
A device for information sifting in linux system, comprising:
Incidence relation sets up unit, is used for restrictive condition to be set to visual button, and according to the type of described restrictive condition, the fill order of predetermined number is associated on described restrictive condition;
First call unit, is used in response to the first restrictive condition in operational order, calls the fill order be associated with described first restrictive condition;
First information collection acquiring unit, is used for obtaining first information collection according to the fill order be associated with described first restrictive condition called;
Second call unit, is used for judging whether described first information collection meets pre-conditioned, if do not meet, then in response to the second restrictive condition in described operational order, and calls the fill order be associated with described second restrictive condition;
Second information set acquiring unit, is used for utilizing the fill order be associated with described second restrictive condition called to screen described first information collection, obtains the second information set after screening.
The method of information sifting and device in a kind of linux system that the embodiment of the present application provides, can by the restrictive condition set up in advance and exectorial incidence relation, and according to each restrictive condition in the operational order of user, the fill order automatically calling bottom is screened information, and does not need user initiatively to input loaded down with trivial details fill order.In addition, the embodiment of the present application can pass through graphical user interface tool, by the Function Integration Mechanism of multiple Linux software together and provide visual button to user, user can be allowed to assign operational order to linux system very easily, thus can screen the information in linux system easily.
With reference to explanation hereinafter and accompanying drawing, disclose in detail the particular implementation of the application, the principle specifying the application can adopted mode.Should be appreciated that, thus the embodiment of the application is not restricted in scope.In the spirit of claims and the scope of clause, the embodiment of the application comprises many changes, amendment and is equal to.
The feature described for a kind of embodiment and/or illustrate can use in one or more other embodiment in same or similar mode, combined with the feature in other embodiment, or substitutes the feature in other embodiment.
Should emphasize, term " comprises/comprises " existence referring to feature, one integral piece, step or assembly when using herein, but does not get rid of the existence or additional of one or more further feature, one integral piece, step or assembly.
Accompanying drawing explanation
Included accompanying drawing is used to provide the further understanding to the embodiment of the present application, which constitutes a part for instructions, for illustrating the embodiment of the application, and comes together to explain the principle of the application with text description.Apparently, the accompanying drawing in the following describes is only some embodiments of the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.In the accompanying drawings:
The process flow diagram of the method for information sifting in a kind of linux system that Fig. 1 provides for the embodiment of the present application;
The functional block diagram of the device of information sifting in a kind of linux system that Fig. 2 provides for the embodiment of the present application.
Embodiment
Technical scheme in the application is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making other embodiments all obtained under creative work prerequisite, all should belong to the scope of the application's protection.
The process flow diagram of the method for information sifting in a kind of linux system that Fig. 1 provides for the embodiment of the present application.Although hereafter describe flow process to comprise the multiple operations occurred with particular order, but should have a clear understanding of, these processes can comprise more or less operation, and these operations can sequentially perform or executed in parallel (such as using parallel processor or multi-thread environment).As shown in Figure 1, described method comprises:
S1: restrictive condition is set to visual button, and according to the type of described restrictive condition, the fill order of predetermined number is associated on described restrictive condition.
In linux system, fill order often has a lot, remembers these fill orders to user, and correctly inputs these fill orders, often there is a lot of difficulty.In the embodiment of the present application, user can be compared the restrictive condition of easy understand to be associated with the fill order in linux system relation, like this when user assigns operational order, some restrictive conditions can be disassembled out from operational order, linux system can according to the incidence relation between the restrictive condition set up in advance and fill order, the fill order that Automatically invoked is associated with the restrictive condition in the operational order of user, so just can realize the operational order of user's input easily.Particularly, by the storage mode of key-value, using restrictive condition as key, the fill order relevant to this restrictive condition can be stored as value, such linux system can by the restrictive condition of input, and fast query is to the fill order corresponding with this restrictive condition.
In the application one preferred embodiment, graphical user interface (GraphicalUserInterface can be utilized, GUI) restrictive condition is set to visual button by instrument, and according to the type of described restrictive condition, the fill order of predetermined number is associated on described restrictive condition.Particularly, can adopt the developing instrument Qt of GUI that various restrictive condition is set to visual button, user can be made like this can to assign operational order to linux system more easily.Such as, the operational order of user can be " after searching on June 5th, 2015 the lower document upgraded of sound code file folder ", in this operational order, two restrictive conditions can be disassembled out, first restrictive condition can be " searching the document under sound code file folder ", and second restrictive condition can be " updated after 5 days June in 2015 ".In the embodiment of the present application, can adopt Qt that these two restrictive conditions are set to visual button, such as first button is " SearchCommittedFiles ", user is after this button of click, follow-up dialog box can be ejected, second button " LimittheTime " can be set in this dialog box.Like this, by two buttons, such instruction that user just can assign to linux system " searching the lower document upgraded of sound code file folder after on June 5th, 2015 ".
After restrictive condition is set to visual button, the embodiment of the present application can according to the type of restrictive condition, for it associates corresponding fill order.Such as, for " SearchCommittedFiles " this restrictive condition, just this system call function of " system " in Linux can be associated with it as a fill order, popen (" CVSlog ") this fill order calling " CVSlog " can also be associated with it in addition.
Like this, the embodiment of the present application just can provide a visual graphical interfaces for user, facilitates user to assign various operational order to linux system.
S2: in response to the first restrictive condition in operational order, calls the fill order be associated with described first restrictive condition.
As described in step S1, user is after assigning operational order to linux system, and this operational order can be disassembled as some restrictive conditions by linux system.The process of described tear down operations instruction can be that designer pre-sets.Such as the operational order of similar " after searching on June 5th, 2015 the lower document upgraded of sound code file folder ", designer can utilize GUI developing instrument to be disassembled as " SearchCommittedFiles " and " LimittheTime " these two restrictive conditions.When user clicks " SearchCommittedFiles " this restrictive condition, linux system just can the fill order that is associated with this restrictive condition of Automatically invoked, such as " system " call function and popen (" CVSlog ") call function.Like this, by the first restrictive condition in operation response instruction, linux system just can associated the first fill order of Automatically invoked.Here it should be noted that, described first fill order can comprise one or more fill order, and described fill order can be (SuSE) Linux OS, and may also be is Linux application software, and the application does not limit this.
S3: the fill order be associated with described first restrictive condition according to calling obtains first information collection.
After linux system calls the first fill order be associated with the first restrictive condition, by performing this first fill order, just can get first information collection.Described first information collection is corresponding with described first restrictive condition.Such as, for " SearchCommittedFiles " this restrictive condition, linux system just can by popen (" CVSlog be for the sound code file folder pathname of search ", " r ") this function is as fill order, search the document under sound code file folder path, the document just can as the first information collection corresponding with " SearchCommittedFiles " this restrictive condition.But, in some cases, can not get by a restrictive condition information set that user wishes, or the information of the information set got is more, needs to screen it.Therefore, the embodiment of the present application is further comprising the steps of:
S4: judge whether described first information collection meets pre-conditioned, if do not meet, then in response to the second restrictive condition in described operational order, and calls the fill order be associated with described second restrictive condition.
Describedly judge whether first information collection meets pre-conditioned process, the information content can concentrated by scanning the described first information has come.Particularly, the embodiment of the present application can pre-set the threshold value of information content, and being less than or equal to this threshold value just can for described pre-conditioned.After getting first information collection, linux system can scan the quantity of this first information collection, when the quantity scanned is less than or equal to this threshold value, just first information collection can be exported as net result; When the quantity scanned is greater than this threshold value, just judge that described first information collection does not meet pre-conditioned, so in response to the second restrictive condition in described operational order and according to described restrictive condition and exectorial incidence relation, the second fill order be associated with described second restrictive condition can be called.Such as " after searching on June 5th, 2015 the lower document upgraded of sound code file folder " this operational order, described second restrictive condition can be " after 5 days June in 2015 " this time restriction.Correspond to this time restriction, designer can pre-set button " LimittheTime ", and user can be allowed to arrange the time point of restriction.Now the second restrictive condition can be regarded as the screening conditions to first information collection, thus using the fill order relevant to screening as the second fill order, and can be associated with the second restrictive condition.Such as, the function of this for QRegExp regular expression class can associate as the second fill order with the second restrictive condition by the embodiment of the present application.So linux system just in response to the second restrictive condition, can call the second fill order associated with it.Same, described second fill order can comprise one or more fill order, and described fill order can be (SuSE) Linux OS, and may also be is Linux application software, and the application does not limit this.
S5: utilize the fill order be associated with described second restrictive condition called to screen described first information collection, obtains the second information set after screening.
After calling the second fill order be associated with described second restrictive condition, described second fill order just can be utilized to screen described first information collection, obtain the second information set after screening.In the application one preferred embodiment, this step can be completed by following two steps:
S51: generate regular expression according to described second restrictive condition.
Regular expression can use single character string to describe, mate a series of character string meeting certain syntactic rule.Suppose there is a file test.txt and comprise following a few row content:
heisarat
heisinarut
thefoodisRotten
Ilikerootbeer
Now, if the character string of a r then any one character then t again will be filtered out from this test file, so just regular expression can be generated: r.t.Then grep order just can be used to test this regular expression, and grep order can use regular expression to go to attempt the every a line in coupling appointment test file, and all row that will have at least place's matching expression show.This order can be grepr.ttest.txt, and so rat and rut in test file can mate out by this order, but but can not mate the Rot in Rotten, because regular expression is case sensitive.Want to mate upper case and lower case letter simultaneously, metacharacter between character area should be used.Regular expression [Rr] can mate R and r simultaneously.So, want r then any one character then t again of coupling one capitalization or small letter, this regular expression will be generated: [Rr] .t.
Particularly, the embodiment of the present application can utilize character recognition technologies, from the second restrictive condition of user's input, automatically generate regular expression.Such as, second restrictive condition of user is " document searching r then any one character then t again with a capitalization or small letter in sound code file folder ", so utilize character recognition technologies to identify this second restrictive condition, just automatically can generate the regular expression that [Rr] .t is such.
S52: utilize the fill order be associated with described second restrictive condition called to scan every bar information that the described first information is concentrated, filter out the information meeting described regular expression, and the information meeting described regular expression is defined as the second information set after screening.
After generating the regular expression corresponding with the second restrictive condition in step s 51, described second fill order can be utilized to scan every bar information that the described first information is concentrated, filter out the information meeting described regular expression, and the information meeting described regular expression is defined as the second information set after screening.Particularly, the embodiment of the present application can call regular expression class function QRegExp, scans every bar information that the described first information is concentrated.In the embodiment of the present application, suppose that the first information integrates as the lower document of sound code file folder, so utilize the QRegExp function scanning first information to concentrate the false code of the update time of document can be as described below:
Wherein, year, month, day, hour, min, sec are year, month, day, hour, min, the second of document update time respectively, if the regular expression of this time and generation matches, then record the document.
Like this, by utilizing the second fill order to the scanning of first information collection, just can filter out the information meeting described regular expression, thus the information meeting described regular expression can be defined as the second information set after screening.
Certainly, if this second information set does not still meet pre-conditioned, so can continue to generate new regular expression according to the 3rd restrictive condition, and utilize the 3rd fill order be associated with the 3rd restrictive condition to scan the second information set, filter out the information meeting new regular expression, thus the quantity of information concentrated message can be reduced further, until meet pre-conditioned.
It should be noted that, the matching process of the process of screening more complicated is often carried out owing to utilizing regular expression, the embodiment of the present application is in order to improve the efficiency of matching process, utilizing described second fill order, described first information collection is screened, before obtaining the second information set after screening, described method can also comprise:
Utilize pipe technology, described first information collection is directed in memory block.Like this, just can, in described memory block, utilize the fill order be associated with described second restrictive condition called to screen described first information collection, obtain the second information set after screening.
Particularly, pipe technology is a kind of communication mode in linux system, the output of a program can be directly connected to the input of another program.Here, can using the output of described first information collection as a program, using the input of memory block as another degree, thus can first information collection larger for data volume be directed in memory block, and the screening process of carrying out in memory block first information collection, the efficiency of matching process can be improved like this.
In another preferred embodiment of the application, before screening first information collection, the embodiment of the present application can also comprise:
According to the fill order be associated with described second restrictive condition called to the demand of data layout, format conversion is carried out to every bar information that the described first information is concentrated.
Because the input data in different application required by fill order often exist different-format, the embodiment of the present application is in order to be used described first information collection by other call functions better, therefore can be the required form of fill order be associated with described second restrictive condition to the format conversion of every bar information that the described first information is concentrated, enconv or iconv instruction can be adopted particularly, a formatted data is converted to the data of another form, it can be such as the file of UTF-8 coding by the file transform that GBK encodes, thus the fill order be associated with described second restrictive condition called can be utilized to screen the first information collection after format conversion, the docking between different call function can be facilitated like this.
The embodiment of the present application also provides the device of information sifting in a kind of linux system.The functional block diagram of the device of information sifting in a kind of linux system that Fig. 2 provides for the embodiment of the present application.As shown in Figure 2, described device can comprise:
Incidence relation sets up unit 100, is used for restrictive condition to be set to visual button, and according to the type of described restrictive condition, the fill order of predetermined number is associated on described restrictive condition;
First call unit 200, is used in response to the first restrictive condition in operational order, calls the fill order be associated with described first restrictive condition;
First information collection acquiring unit 300, is used for obtaining first information collection according to the fill order be associated with described first restrictive condition called;
Second call unit 400, is used for judging whether described first information collection meets pre-conditioned, if do not meet, then in response to the second restrictive condition in described operational order, and calls the fill order be associated with described second restrictive condition;
Second information set acquiring unit 500, is used for utilizing the fill order be associated with described second restrictive condition called to screen described first information collection, obtains the second information set after screening.
In the application one preferred embodiment, described incidence relation is set up unit 100 and can be comprised:
Visual setting module 101, is used for utilizing graphical user interface tool that restrictive condition is set to visual button.
In another preferred embodiment of the application, before described second information set acquiring unit 500, described device can also comprise:
Directed element 410, is used for utilizing pipe technology, is directed in memory block by described first information collection.
In another preferred embodiment of the application, described second information set acquiring unit 500 specifically can comprise:
Regular expression generation module 501, is used for generating regular expression according to described second restrictive condition;
Screening module 502, be used for utilizing the fill order be associated with described second restrictive condition called to scan every bar information that the described first information is concentrated, filter out the information meeting described regular expression, and the information meeting described regular expression is defined as the second information set after screening.
In another preferred embodiment of the application, before described second information set acquiring unit 500, described device can also comprise:
Format conversion unit 420, is used for according to the fill order be associated with described second restrictive condition called to the demand of data layout, carries out format conversion to every bar information that the described first information is concentrated;
Correspondingly, described second information set acquiring unit 500 is used for utilizing the fill order be associated with described second restrictive condition called to screen the first information collection after format conversion.
In said apparatus, the workflow of each functional module is similar to step S1 to S5, repeats no more here.
The method of information sifting and device in a kind of linux system that the embodiment of the present application provides, can by the restrictive condition set up in advance and exectorial incidence relation, and according to each restrictive condition in the operational order of user, the fill order automatically calling bottom is screened information, and does not need user initiatively to input loaded down with trivial details fill order.In addition, the embodiment of the present application can pass through graphical user interface tool, by the Function Integration Mechanism of multiple Linux software together and provide visual button to user, user can be allowed to assign operational order to linux system very easily, thus can screen the information in linux system easily.
In this manual, the adjective that such as the first and second grades are so only may be used for an element or action and another element or action to distinguish, and without requiring or imply this relation or the order of any reality.When environment allows, should not be construed as one that is confined in only element, parts or step with reference to element or parts or step (s), and can be one or more etc. in element, parts or step.
With the object described, those skilled in the art are supplied to the description of the various embodiments of the application above.It is not intended to is exhaustive or is not intended to the present invention to be limited to single disclosed embodiment.As mentioned above, the various alternative and change of the application will be apparent for above-mentioned technology one of ordinary skill in the art.Therefore, although specifically discuss the embodiment of some alternatives, other embodiment will be apparent, or those skilled in the art relatively easily draw.The application is intended to be included in that of the present invention all that this had discussed substitute, amendment and change, and drops on other embodiment in the spirit and scope of above-mentioned application.
In the nineties in 20th century, it is improvement (such as, to the improvement of the circuit structures such as diode, transistor, switch) on hardware or the improvement (improvement for method flow) on software that improvement for a technology can clearly be distinguished.But along with the development of technology, the improvement of current a lot of method flows can be considered as the direct improvement of hardware circuit.Designer nearly all obtains corresponding hardware circuit by being programmed in hardware circuit by the method flow of improvement.Therefore, the improvement of not talkative method flow just can not realize by hardware entities module.Such as, programmable logic device (PLD) (ProgrammableLogicDevice, PLD) (such as field programmable gate array (FieldProgrammableGateArray, FPGA) be exactly) so a kind of integrated circuit, its logic function is determined device programming by user.Programmed voluntarily a digital display circuit " integrated " on a slice PLD by designer, and do not need chip maker to carry out the special integrated circuit (IC) chip of designing and making 2.And, nowadays, replace and manually make integrated circuit (IC) chip, this programming is also used instead mostly " logic compiler (logiccompiler) ", and software realizes, it and program development is write time software compiler used similar, and source code before will compiling also handy specific programming language write, this is referred to as hardware description language (HardwareDescriptionLanguage, HDL), and HDL also not only has one, but have many kinds, as ABEL (AdvancedBooleanExpressionLanguage), AHDL (AlteraHardwareDescriptionLanguage), Confluence, CUPL (CornellUniversityProgrammingLanguage), HDCal, JHDL (JavaHardwareDescriptionLanguage), Lava, Lola, MyHDL, PALASM, RHDL (RubyHardwareDescriptionLanguage) etc., the most generally use VHDL (Very-High-SpeedIntegratedCircuitHardwareDescriptionLangu age) and Verilog2 at present.Those skilled in the art also should be clear, only needs method flow is slightly made programming in logic with above-mentioned several hardware description language and is programmed in integrated circuit, just can be easy to the hardware circuit of this logical method flow process accomplished.
Controller can realize by any suitable mode, such as, controller can be taked such as microprocessor or processor and store the computer-readable medium of the computer readable program code (such as software or firmware) that can be performed by this (micro-) processor, logic gate, switch, special IC (ApplicationSpecificIntegratedCircuit, ASIC), the form of programmable logic controller (PLC) and embedding microcontroller, the example of controller includes but not limited to following microcontroller: ARC625D, AtmelAT91SAM, MicrochipPIC18F26K20 and SiliconeLabsC8051F320, Memory Controller can also be implemented as a part for the steering logic of storer.
Those skilled in the art also know, except realizing except controller in pure computer readable program code mode, controller can be made to realize identical function with the form of logic gate, switch, special IC, programmable logic controller (PLC) and embedding microcontroller etc. by method step being carried out programming in logic completely.Therefore this controller can be considered to a kind of hardware component, and to the structure that also can be considered as the device realizing various function in hardware component comprised in it.Or even, the device being used for realizing various function can be considered as not only can be implementation method software module but also can be structure in hardware component.
System, device, module or unit that above-described embodiment is illustrated, specifically can be realized by computer chip or entity, or be realized by the product with certain function.
For convenience of description, various unit is divided into describe respectively with function when describing above device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add required general hardware platform by software and realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the application or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
The application can be used in numerous general or special purpose computing system environments or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, system, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, the distributed computing environment comprising above any system or equipment etc. based on microprocessor.
The application can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the application in a distributed computing environment, in these distributed computing environment, be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
Although depict the application by embodiment, those of ordinary skill in the art know, the application has many distortion and change and do not depart from the spirit of the application, and the claim appended by wishing comprises these distortion and change and do not depart from the spirit of the application.

Claims (10)

1. the method for information sifting in linux system, is characterized in that, comprising:
Restrictive condition is set to visual button, and according to the type of described restrictive condition, the fill order of predetermined number is associated on described restrictive condition;
In response to the first restrictive condition in operational order, call the fill order be associated with described first restrictive condition;
The fill order be associated with described first restrictive condition according to calling obtains first information collection;
Judge whether described first information collection meets pre-conditioned, if do not meet, then in response to the second restrictive condition in described operational order, and call the fill order be associated with described second restrictive condition;
Utilize the fill order be associated with described second restrictive condition called to screen described first information collection, obtain the second information set after screening.
2. the method for information sifting in a kind of linux system as claimed in claim 1, is characterized in that, describedly restrictive condition is set to visual button and specifically comprises:
Utilize graphical user interface tool that restrictive condition is set to visual button.
3. the method for information sifting in a kind of linux system as claimed in claim 1, it is characterized in that, utilizing the fill order be associated with described second restrictive condition called to screen described first information collection, before obtaining the second information set after screening, described method also comprises:
Utilize pipe technology, described first information collection is directed in memory block;
Correspondingly, the fill order be associated with described second restrictive condition that described utilization is called is screened described first information collection, obtains the second information set after screening and is specially:
In described memory block, utilize the fill order be associated with described second restrictive condition called to screen described first information collection, obtain the second information set after screening.
4. the method for information sifting in a kind of linux system as claimed in claim 1, it is characterized in that, the fill order be associated with described second restrictive condition that described utilization is called is screened described first information collection, obtains the second information set after screening and specifically comprises:
Regular expression is generated according to described second restrictive condition;
The fill order be associated with described second restrictive condition called is utilized to scan every bar information that the described first information is concentrated, filter out the information meeting described regular expression, and the information meeting described regular expression is defined as the second information set after screening.
5. the method for information sifting in a kind of linux system as claimed in claim 1, is characterized in that, before the fill order be associated with described second restrictive condition called in described utilization is screened described first information collection, described method also comprises:
According to the fill order be associated with described second restrictive condition called to the demand of data layout, format conversion is carried out to every bar information that the described first information is concentrated;
Correspondingly, utilize the fill order be associated with described second restrictive condition called to carry out screening to described first information collection to comprise:
The fill order be associated with described second restrictive condition called is utilized to screen the first information collection after format conversion.
6. the device of information sifting in linux system, is characterized in that, comprising:
Incidence relation sets up unit, is used for restrictive condition to be set to visual button, and according to the type of described restrictive condition, the fill order of predetermined number is associated on described restrictive condition;
First call unit, is used in response to the first restrictive condition in operational order, calls the fill order be associated with described first restrictive condition;
First information collection acquiring unit, is used for obtaining first information collection according to the fill order be associated with described first restrictive condition called;
Second call unit, is used for judging whether described first information collection meets pre-conditioned, if do not meet, then in response to the second restrictive condition in described operational order, and calls the fill order be associated with described second restrictive condition;
Second information set acquiring unit, is used for utilizing the fill order be associated with described second restrictive condition called to screen described first information collection, obtains the second information set after screening.
7. the device of information sifting in a kind of linux system as claimed in claim 6, it is characterized in that, described incidence relation is set up unit and is comprised:
Visual setting module, is used for utilizing graphical user interface tool that restrictive condition is set to visual button.
8. the device of information sifting in a kind of linux system as claimed in claim 6, it is characterized in that, before described second information set acquiring unit, described device also comprises:
Directed element, is used for utilizing pipe technology, is directed in memory block by described first information collection.
9. the device of information sifting in a kind of linux system as claimed in claim 6, it is characterized in that, described second information set acquiring unit specifically comprises:
Regular expression generation module, is used for generating regular expression according to described second restrictive condition;
Screening module, be used for utilizing the fill order be associated with described second restrictive condition called to scan every bar information that the described first information is concentrated, filter out the information meeting described regular expression, and the information meeting described regular expression is defined as the second information set after screening.
10. the device of information sifting in a kind of linux system as claimed in claim 6, it is characterized in that, before described second information set acquiring unit, described device also comprises:
Format conversion unit, is used for according to the fill order be associated with described second restrictive condition called to the demand of data layout, carries out format conversion to every bar information that the described first information is concentrated;
Correspondingly, described second information set acquiring unit is used for utilizing the fill order be associated with described second restrictive condition called to screen the first information collection after format conversion.
CN201510561202.8A 2015-09-06 2015-09-06 The method and device of information sifting in a kind of linux system Active CN105183472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510561202.8A CN105183472B (en) 2015-09-06 2015-09-06 The method and device of information sifting in a kind of linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510561202.8A CN105183472B (en) 2015-09-06 2015-09-06 The method and device of information sifting in a kind of linux system

Publications (2)

Publication Number Publication Date
CN105183472A true CN105183472A (en) 2015-12-23
CN105183472B CN105183472B (en) 2018-10-16

Family

ID=54905571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510561202.8A Active CN105183472B (en) 2015-09-06 2015-09-06 The method and device of information sifting in a kind of linux system

Country Status (1)

Country Link
CN (1) CN105183472B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557548A (en) * 2016-10-31 2017-04-05 黄建文 A kind of message screening system and method
CN107016099A (en) * 2017-04-10 2017-08-04 国家电网公司 The folder space monitoring maintenance system and method for class Unix system server
CN111797149A (en) * 2019-06-27 2020-10-20 厦门雅基软件有限公司 Data acquisition method, device, equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101349956A (en) * 2008-08-11 2009-01-21 深圳华为通信技术有限公司 Method and apparatus for executing pattern touch order
CN102141874A (en) * 2010-02-10 2011-08-03 深圳市金蝶中间件有限公司 Method and system for operating primitives in graphics operation interface
CN104852833A (en) * 2015-06-04 2015-08-19 上海斐讯数据通信技术有限公司 Network protocol stack management method and system in Linux system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101349956A (en) * 2008-08-11 2009-01-21 深圳华为通信技术有限公司 Method and apparatus for executing pattern touch order
CN102141874A (en) * 2010-02-10 2011-08-03 深圳市金蝶中间件有限公司 Method and system for operating primitives in graphics operation interface
CN104852833A (en) * 2015-06-04 2015-08-19 上海斐讯数据通信技术有限公司 Network protocol stack management method and system in Linux system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张玲: "基于嵌入式Linux的图形界面的开发与研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
王丽洁: "嵌入式Linux的图形界面技术研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557548A (en) * 2016-10-31 2017-04-05 黄建文 A kind of message screening system and method
CN107016099A (en) * 2017-04-10 2017-08-04 国家电网公司 The folder space monitoring maintenance system and method for class Unix system server
CN111797149A (en) * 2019-06-27 2020-10-20 厦门雅基软件有限公司 Data acquisition method, device, equipment and computer readable storage medium
CN111797149B (en) * 2019-06-27 2023-01-31 厦门雅基软件有限公司 Data acquisition method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN105183472B (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN110928529B (en) Method and system for assisting operator development
US20210034336A1 (en) Executing a process-based software application in a first computing environment and a second computing environment
US20200142691A1 (en) Systems and methods for code analysis heat map interfaces
US10698674B2 (en) Systems and methods for entry point-based code analysis and transformation
US9286040B2 (en) Software builder
US20200356466A1 (en) Machine learning based test case prediction and automation leveraging the html document object model
US9189377B1 (en) Automation testing using descriptive maps
CN110941467A (en) Data processing method, device and system
US20190364081A1 (en) Leveraging microservices to orchestrate media workflows in the cloud
US20020032875A1 (en) Information processing apparatus and method
US20220035847A1 (en) Information retrieval
CN103995698A (en) Application form agile development method and system oriented to business
US9098497B1 (en) Methods and systems for building a search service application
Walls et al. XDoclet in Action (In Action series)
CN104077133A (en) Configuration type menu generating method
US20190080007A1 (en) Methods and systems for building a search service application
US10691434B2 (en) System and method for converting a first programming language application to a second programming language application
CN101170568B (en) A method for automatically generating and executing Telnet command via batch mode
WO2013109858A1 (en) Design canvas
CN105183472A (en) Method and device for screening information in Linux system
CN111158651A (en) Method, device and system for constructing artificial intelligence application
CN117931190A (en) Code management method and related equipment
Christie et al. An extensible django-based web portal for apache airavata
CN111722893A (en) Method and device for interaction of graphical user interface of electronic equipment and terminal equipment
US20200250371A1 (en) Providing way to store process data object state as snapshots at different points of process

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant