List search results in modification order

Now spotlight doesn't seem to search all invisible files.... can anyone help me limp along with a bit of unix please?
I have "find ~/ -mtime -1 -ls" to search for stuff I've touched today
and "ls -lt" to list stuff with most recent first - they seem to work
What I can't seem to do is get the "today" list to sort with the most recent first etc
I think I am looking for something like:
find ~/ -mtime -1 | (sort by date please) | open -f
sorry about this but it's Unix day one here!
G5   Mac OS X (10.4.3)  

Hi Beau Geste,
   UNIX day one?? I find that hard to believe; you seem to be pretty good. It hasn't been but a few years since I asked a friend what those numbers meant in a chmod command he told me to execute. You're using the "find" command in a fairly elegant way. If you're really just beginning, you'll go far!
   Fortunately, someone asked about "sort" recently so I'm up on it. The man page is somewhat spartan so the "info sort" helped a lot. My vote for your command would be:
find ~ -mtime -1 -ls | sort -k 8,8Mr -k 9,9nr -k 10,10r
   The -k options specify fields by which to sort, in order of priority. By default, a line is split into fields at white space, as the shell does. A "-t" switch can be used to specify alternative field separators but white space is what we want here.
   The first field is the month and sort has a nice modifier, 'M', that sorts three digit month listings properly. Given what you're sorting, that would only matter on the first of each month but one might as well be thorough. The next field is day and I sort that numerically. That way, 10 is bigger than 9, since "find -ls" doesn't put zeroes in front of single digit numbers in dates. It does pad the "time of day" field so alphabetical order is the same as numerical order.
   Note that the 'r' modifier must be used on each field. If I put a '-r' option at the beginning, it would be a "global modifier". Those are ignore when modifiers, like 'M' and 'n', are used with a field. It would still apply to the "time of day" field, since no local modifier is used.
   You may observe that this will probably fail on New Year's Day. A special sort command would be required for that but if you're going to be doing this on New Year's Day, you've got more problems than we can fix here!
Gary
~~~~
   Duct tape is like the force. It has a light side, and a dark
   side, and it holds the universe together ...
         -- Carl Zwanzig

Similar Messages

  • How to list searched email in dATE ORDER

    There seems to be a problem with searching for email with my iphone5s.Unlike with my iphone 4s it does not display the results in date order. The most recent emails are shown buried further down in the list. I have asked the gurus at two Apple shops and nobody seems to be aware of the problem or can assist. I would have imagined this would have been readily observed by Apple in the initial beta testing so am surprised it has not been sorted before release. I have uploaded ios7.0.3 so I am up to date.

    i think there is no settings to sort the search results by date, in order to search by time, you can type the month name followed by your search query
    something like "February meeting"
    look into mails section  in the ios& manual
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf

  • Is it possible to get Spotlight to list search results by closest name match not document type?

    Example: when I type 'wireless info' into Spotlight on my computer the document 'wireless info' is the 29th search result listed.  The top hit is a mail message named 'Re: Re: Reset the device, and new wireless info'.  The other 27 items in the list above the document I was looking for are things like 'Introducing Portland.doc' and 'Les Amis B&B'.  So spotlight is not very good at locating something when you know exactly what it is you are looking for.

    Thanks Barney.  Your advice was spot on.  But today I downloaded the new Yosemite OS and the behaviour is exactly reversed!  Spotlight can now be used for searching folders and shows my folder as the top hit, and finder does not show the folder at all in its search results of my Mac.  See below:

  • Change search results to ascending order

    Some time in the past week or to, the search results that are returend from Finder, are now in descending order. I have no idea when or how that was changed, but I'd like to change it back to ascending.  How do I accomplish? 
    I tried clicking  and right clicking the column header. Nothing. Can't find anything  Settings either.
    Please help!
    David

    Thanks CaptFred, that was it.  At some point I had selected Arrange by -> Name, and that for some reason defaulted to descending. 
    I just did some checking.  Apparently, the current sort order becomes the default if you choose a different Arrange by value, and you can't change that unless you select Arrange by ->None.  Interesting.
    good to go!
    Thanks!
    David

  • Opportunity - Sales Prospect: List search results if more than one match

    Hi CRM Experts,
    in the Opportunity our users have to enter a Sales Prospect. PC-UI allows to enter directly a Name like "Wolf". But when you press enter after this step the first match is filled into this field. But this can be the wrong Sales Prospect. I want to have a functionality that when the Name is entered and there are more than one match a list of the results should be displayed. Then the user can choose the correct partner.
    Regards
    Gregor

    Hi Gregor
       Yes,you are right actually the pop up window will appear with sales employee and other partner if necessary and suggested by the system.I hope you would have gone thru acquistion  from there opportunities and then you would createand clicked on sales methodology(Scroll down if necessary).Actually i dont have access now to the system i will defintely check it out and let you know ASAP.
    Regards

  • Change default ordering for search results?

    Hi,
    I have just switched to using Mail.
    It seems the search results are always ordered by rank as default, but usually I have some intuition about when the message was sent so for me it would be great if there was a way to have results ordered by date by default. Is this possible, perhaps with a plugin or applicescript?
    Thanks

    If you enable highlighting, the box the end user has is selected by default and you cannot change that. If you want that option added in a future version, submit a feature request.
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    See www.grainge.org for RoboHelp and Authoring tips

  • Sorting the Search Result of IndexBased Search Result

    Hi ,
    I am using Index based search to get the result from the Index. I am trying to get the search result with sorting order of modified date.
    I found there is an API to get but I could able to understand How to use that API.
    If any body knows please let me know the solution
    Thanks
    Tatayya M

    No info

  • Made Link with iTunes Link Maker. Want link to appear in Google search results. What next?

    Hey all,
    Just a quick question following some exposition.
    I have a book sitting in the iTunes store, and just came across the Link Maker feature to, well, make a link for it. I made a link, which I'd like to have appear in Google search results. In order for that to happen, do I...
    ...just wait for Google to crawl itunes.apple.com, and hope that it shows up?
    ...manually submit the link to Google through Google's apparatuses?
    or does Apple have a mechanism for making it appear in Google search results without any further effort from me? I realize rankings and SEO are entirely different questions, but wondered how the submission process plays out.
    Mods, if this question isn't in the right place, feel free to move it.
    My thanks in advance!

    or does Apple have a mechanism for making it appear in Google search results without any further effort from me?
    I never heard of such a thing, and given that Apple thinks and functions largely as a closed ecosystem, it seems rather unlikely.
    If you have a way to submit directly to Google, go for it.
    As an experiment, I suggest you try a few books that have similar audiences as yours, and search for them on Google, Bing, etc, and see where the results take you. 

  • How to change search result list entries?

    Hi together,
    I'd like to fit the TREX search result list to my own requirements. I've edit the Search Result Renderer Settings, Search Result Layout Set, Search Component Set and the Search Option Set. But that's not enough.
    1.) I would like to display the relevant index name, in which the document was found.
    2.) For special indexes (not for all!) I want to change the content link:
    For example: if TREX is finding an xml-File in index "abc_index" I would like to change the content link from
    "https://portalserver/irj/go/km/docs/folder/p76.xml" to
    "https://portalserver/irj/go/km/docs/folder/p76.htm"
    and from
    "https://portalserver/irj/go/km/docs/folder/p76_data.xml" to
    "https://portalserver/irj/go/km/docs/folder/p76.htm"
    3.) I'd like to display a special part of the document as a explanatory text in the result list.
    I think point 1 and 3 are possible with properties and HTML-extractors. But point 2 I'm afraid I have to create my own component.
    But how to manage this? I cannot find any code snippets or tutorials or pattern to copy and develop further.
    Is it possible or advised to write a WebDynpro? Are there other possibilities? I don't know how to start.
    I would be pretty delighted to get any idea...
    Thanks a lot
    Steffi

    Hi Stefanie
    1) If you want to be able to show the name instead, you should write your own property renderer. Heres the link for the documentation: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c739e546-0701-0010-53a9-a370e39a5a20 -> How to Implement Flexible UI
    Components -> Property Renderer
    2) Documentation will be send in a matter of minutes.
    3) I also think the web property extractors only work with the web repository manager, because as far as I know that is the only repository manager, where you can select a web property extractor upon creation. I guess you could open an OSS to SAP and ask if its not possible to extract properties in your scenario just to be sure if its not possible. But my guess is that you either have to develop your own repository manager or publish your files on a web server in order to meet your requirements.
    Best regards,
    Martin

  • Stop Firefox from reverting back to Google Search Results when opening a page from results list

    When I click on one of the results from a Google search, I have it open the page in a new window. The page opens in the new window just fine, but instead of letting me view the page in the new window, Firefox takes me back to the Google Search results page. I am able to click on the new window and view the page that I chose, but it gets old being sent back to the search results each time I click on one of them and attempt to view it.
    This happens on my work PC, home laptop, and my desktop at home as well. I have different versions running on each machine, and home laptop has the latest version of Firefox. I have searched the web and cannot find anyone having this same problem, much less a resolution, so I will ask here.
    I hope this makes sense, if more info is needed please let me know.
    Thanks to anyone that can help.

    One reason for this can be if the new window contains Flash media, but Flash hasn't been used for several minutes, the Adobe protected mode feature changes the order of the windows. This is a bug that Adobe has yet to fix. This thread describes the problem in more details and lists the known workarounds: [https://support.mozilla.org/questions/955659 Opening New Windows and Shockwave Flash].
    If you rule out the Flash issue, could you test the page in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    Not all add-ons are disabled: Flash and other plugins still run
    After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Any difference?

  • Embedded Search: Additional columns in search result list of cv04n

    Dear all
    We needed to extended a standard append object to add an additional attribute column "description" in the search result list of cv04n.
    Otherwise no user is able to find out best-fit search result really without any indicator about content.
    Now my question is if it is possible to add more columns class-independently?
    So description is defined for every class type, but what about individual ones for each class?
    Best regards
    André

    Hi,
    First check, how the dropdown has been added on toolbar. check if any view set is there in sales order search component.Try by put break point in do_handle_event method of the view and viewset if any.
    There might be different configuration in result view to select based on the value selected from dropdown.
    Regards,
    Dharmakasi.

  • Change sort order search results?

    When I search in Mountain Lion I get a list of results, for instance documents that contain the word "serial"
    see the attached screenshot.
    The searchresults are ordered by name.
    Only problem is the last result (starting with a Z) comes first.
    I want the results starting with an A to show first.
    In Lion you could reverse the sort order by clicking in the top bar (which says "Name" or "Naam" in my screenshot) but here that does not work.
    What am I missing?
    Thanks

    Change the item arrangement to 'None'
    And then you'll be able to reverse the sort order

  • How to influence customer order (VA01) article search results

    Hey Gurus!
    We're running ECC 5.0 for retail and we have a business request to change the standard search within the ECC create/modify sales order (VA01/VA02) so that when a user searches for an article that the only articles that are returned that match the search criteria have inventory in the site.
    I've been looking for a badi or user exit specifically to affect the results of a search within the sales order functionality but I can't see to find one. Can you point me in the right direction, or let me know if something like this is available?
    If not, where would I insert a custom enhancement to make this work (i.e. which standard program would require modification)?
    Thanks,
    Don

    Hello Don
    I don't have Retail knowledge or system ( with me)  to help you.
    But in standard ERP, you can set up new search help or match codes for materials and assortments.
    IMG Path:
    Materials
    SPRO/IMG/Logistics - General/Material Master/Tools/Maintain Search Helps
    Assortments
    SPRO/IMG/Logistics - General/Assortment/Assortment/Matchcodes, Assortments
    I am sure you will have similar search helps in Retail IS also for Articles.
    Having said that, Search Helps are usually for static master data fields like Material Group, Product Hierarchy, class etc. and I am not sure if it will be easy to build a search help for a dynamic piece of information like availability of stock.
    In any case work with Basis/ABAP teams while building new, custom search helps.
    Hope this helps.

  • Error while adding a 'Ext No' field to Activities Search Result List on UI

    Hi Experts,
    The requirement is to add a new display field u2018External Nou2019to the activities SEARCH Result list.
    At the moment activities are displayed with start date, end date and category, now the user want to display External No as well.
    The details for that
    Target:
    Component:BT126S_APPT
    View:bt126s_Appt/ApptSR
    Context Node:BTQRACT
    New attribute 'EXTERN_ACT_ID' to be added to the context node.
    Source: component: BT125H_TASK
    View: BT125H_TASK/TaskDetailsOV
    ContextNode:BTACTIVITYH
    Attribute:Struct.Extern_Act_Id
    BOL Relation:
    BOL ENTITY: BTQRAct
    BOL Attribute: BTADVSAct -> BTOrderHeader -> BTHeaderActivityExt/EXTERN_ACT_ID
    When i tried to added the attribute to the context node BTQRACT, it gave me the error 'method CL_BT126S_A_APPTSR_CTXT CREATE_BTQRACT DOES NOT EXIST.
    please give me some inputs.
    Regards
    Krishna

    Hi steve,
    Still my issue was not resolved, could you help me to find the exact error.I have enhanced the component, view and context node, still i couldn't able to add attributes to the context node BTQRACT.I tried to add several fields, but it is giving the same error 'METHOD CL_BT126S_A_APPTSR_CTXT' CREATE_BTQRACT DOES NOT EXIST'. I have checked the OSS messages and found 2 relavant to this component. I have implemented both the Sap Notes 1363752, 1226612. Still after implementing the OSS note, i am getting the same error.My guess is one of the method is missing. Please help me out?
    Regards
    Krishna

  • Different Color Text of Topic Titles by Child Project in Search Results List

    Does anyone know how I can change the text color to indicate the source project of a topic as displayed in the Search Results list?
    I have followed Peter Grainge's directions for setting up a parent project that has several child projects, one of which contains outdated version-specific information. Thanks, Peter!
    I would like it to be obvious to the user before they open a topic from the Search Results list that it is from the old legacy project.
    I have found where the font is set, (thanks to the RoboWizard), but I am not a Javascript programmer and am uncertain how to code the "if document is from this project, then use this font" logic.
    I would also like to put a "caption" below the "Search Results per page" line to explain the purpose of the color change.
    I am using RoboHelp HTML 8.0.2. I generate WebHelp output which is then FTP'd to our server.
    Thanks in advance!

    Hi Leon,
         Let me make sure that I understand your suggestion - I should change the title of each topic in the "legacy" knowledge base so that they each include a short identifier, such as "First Topic - Legacy"? If so, I suppose that would work, but I'd have to change 1,000 topics. The topic titles would no longer match the filenames (I'm trying to freeze changes to the old knowledge base to which there are many links from our user forum), which I suppose is not a big concern at this point.  I'll run some tests.
         That has also raised another question in my mind, but I'll post that separately. It's about the way Robohelp selects the text that is shown immediately after the title of the topic in the Search Results list.
         Thanks for taking the time to help!

Maybe you are looking for

  • My iPhone won't display its apps in iTunes

    My wife's iPhone is connected to her PC, but the Home Screens for the apps won't display in iTunes.

  • Common internal order for multiple company codes.

    Hi All Can I have one statistical internal order which can be used at more than on Company code where controlling is common for all company codes. Thanks in advance reg S. Habib Pasha.

  • HOW TO MAKE AN UPDATE COMMAND MORE EFFICIENT

    hI Everyone, if we have round (10000000) records in a table and we want to update an attribute in this table. it takes sometime round 60 mins or even more, while both tables are indexed. Do anyone knows any magic to improve the efficiency. Best Regar

  • ERM 5.3 Error - READ TIME OUT

    Hello GRC Community, <br><br> I'm running into an issue in GRC 5.3 SP10 for the ERM Module.  When we're building a role and get to the risk analysis step, the analysis runs (at the transaction or object level) for a very long time before it kicks bac

  • JPQL Query for specific usecase, help needed

    Does anyone knows how to write the JPQL query for this specific use case. Take 3 tables, Table 1 contains bids for many auctions (Bid table) Table 2 Contains many auctions (Auction Table) Table 3 contains many users (User Table) I need a query to ret