I need to sort some data with Unix sort but I can not understand the exact syntax, the data appears < / P>
3. 9.1 Step 10: 3. 9.11 Phase 20: 3.8.10 Step 20: 3.10.2 Step 10: 3.8.4 Phase 9 3.8.4 Phase 100: 3.8.4 Step 10: I want to sort it by using a large number first, then step number, like the above given data.
3.8.4 Phase 10: 3.8.4 Phase 90: 3.8.4 Phase 100: 3.8.10 Phase 20: 3. 9.1 Step 10: 3. 9. 1 step 20: 3.10.2 step 10: I found a way to sort by first number on this site:
sort -t P>
unix sort ('theory and practice in construction a work order routine' , J. L. Linderman, AT & T Bell Labs Tech Journal, October 1984) Unfortunately, not available on the Internet, AFAICT (I saw a year ago and I did not get it, I was again Ekha now, and you can find the reference, but the article does not). In addition to other things, it has been shown in the article that for Unix sorting , compared to the time compared to the time, it is not much surprising (when you think that comparison Per-set of fields per line is compared, there is a question of switching data 'bus indicators). One consequence of this was that they suggest what to suggest; Mapping key is easy to compare. He showed that a simple scripting solution could really save time with hard work. Therefore, you may want to consider using a character that is unlikely to appear in the data file (such as Control-A ) as the key field separator In. sed 's /^\([^.]*\)[[](([^.]* \] [.] \ ([^] * \) Phase \ ( [0- 9] * \): * / \ 1 ^ a \ 2 ^ a \ 3 ^ a \ 4 ^ a and / 'file | sort -t' ^ a '-k1,1n -k2,2n -k3 , 3n-k4,4n | Sed 's /^.*^ A //' The first order is difficult, it identifies the 4 digit areas, and selects the selected character (written < Outputs differently from code> ^ A above, typed as control-A ), and then outputs a copy of the original line. This sequence is then the first four Works numerically on areas, and the last sed earns E in front of each row and the last Ctrl-A original line back again.
Popular posts from this blog
I am currently working on a school project and I think that is to gather some problems with the MPEG file I The scope of my project is: 1) Split the MPEG file into pieces of many fixed sizes. 2) Collecting some of them and leaving some part. Problem 1: When I run the file in the media player, it will play the video until it reaches that segment which I left Give it Example: Chunk = ["yui_1", "yui_2", "yui_3", "yui_5", "yui_6"] Duration of each segment: 1 second * If you think I have left the "yui_4" section. * If I went to collect all the parts except "yui_4", then the video will play the first 2 seconds before being hanged throughout the period. Problem 2: When I gather the first part off the part, it is unable to run the full MPEG file is. Duration of each piece: 1 second Example: wheel = ["yui_2", "yui_3", "yui_4", "yui_5", "yui_6"...
I have created a crystal report with parameters, but this does not load the value. It only shows the title, I mean column name only. Please check your code and correct me. And I tried to load that report in PDF format, which shows an error like "Load report failed" Please correct me. Protected Zero Button 2_Click (Object Sender, EventArgs E) {Report Document Reports Document = New Report Document (); Reportdocument.Load (Server.MapPath ("CrystalReport.rpt")); Reportdocument.SetDatabaseLogon ("", "", "Arvind", "My ScamDDB"); Report document. Setpermator val ("mrno", textbox 1. text); CrystalReportViewer1.ReportSource = Report Document; } Secure Zero LinkButton1_Click (Object Sender, EventArgs E) {Exportport (); Private Zero Exports () {MemoriStream Ostream; Response.Clear (); reaction. Buffer = true; Report Document Report Document = New Report Document (); Reportdocument.Load (Server.MapPath ("CrystalReor...
While pagging my user model in kppp, I can sort with some values, but not others. For example, I can order results from created or email , for example, but username or reputation seems to come back order by arbitrary command for example with a list of users: $ this-> paginate = array ('condition' => array ( 'User.is_active' = & gt; true), 'border' => 24, 'order' => array ('User.created' => DESC)); Works as expected, but $ this - & gt; Paged = array ('conditions' = & gt; array (' user.isIactive '= & gt; true),' border '= & gt; 24,' command '= & gt; array (' user repeats' = ' & Gt; DESC ')); No, no. I first thought that this could be a database issue, but when I search the database directly, sorted as expected. Note: I am using Mangodebi with the Mongo DB plugin of Ichikawa for the KPPHP; Pagnetizing users are used to work properl...
Comments
Post a Comment