Hey gang, I need to find (so I can look through) a bunch of a certain type of files. I tried using the 'find files/folders' thing on the menu, but it didn't help me at all no matter how much info I put in to give it a hand. What I want to find, is *all* and *only* Gzip archive files made during a specific day/date in my /home/me/.mozilla/seamonkey/bliq9n9z.default/Cache/<a whole slew of folders here>/<and here> For instance, one will be at /home/me/.mozilla/seamonkey/bliq9n9z.default/Cache/0/00/ and will be named 81858d01. It won't have an extension, but in the 'type' column when using Dolphin it will be a Gzip archive. A strange thing about those folders too...one could have been created(?) on 13 Feb 2012 yet will contain files that may have dates ranging from a created(again ?) jpg on 27 Jan 2012 to an 'unknown' type of 02 Feb 2012. There can be 2 to 20 files in any one of these folders and each will have a complete mixture of dated files in it and none have an extension other than in the 'type' column, unlike say, in my 'home' folder. Is there some other way besides trying to use the find files/folders app in the kmenu? A better way? Even a commandline way, so long as someone tells me how and/or what to type is fine, heh. -- There is no such thing as a hyphenated American who is a good American. The only man who is a good American is the man who is an American and nothing else. -Theodore Roosevelt, 1915 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 17 Feb 2012 00:31:42 Insomniac wrote:
Hey gang,
I need to find (so I can look through) a bunch of a certain type of files. I tried using the 'find files/folders' thing on the menu, but it didn't help me at all no matter how much info I put in to give it a hand.
What I want to find, is *all* and *only* Gzip archive files made during a specific day/date in my /home/me/.mozilla/seamonkey/bliq9n9z.default/Cache/<a whole slew of folders here>/<and here>
For instance, one will be at /home/me/.mozilla/seamonkey/bliq9n9z.default/Cache/0/00/ and will be named 81858d01. It won't have an extension, but in the 'type' column when using Dolphin it will be a Gzip archive.
A strange thing about those folders too...one could have been created(?) on 13 Feb 2012 yet will contain files that may have dates ranging from a created(again ?) jpg on 27 Jan 2012 to an 'unknown' type of 02 Feb 2012. There can be 2 to 20 files in any one of these folders and each will have a complete mixture of dated files in it and none have an extension other than in the 'type' column, unlike say, in my 'home' folder.
Is there some other way besides trying to use the find files/folders app in the kmenu? A better way? Even a commandline way, so long as someone tells me how and/or what to type is fine, heh.
locate <options> man locate for details... -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au =================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 2012-02-17 at 00:37 +1030, Rodney Baker wrote:
On Fri, 17 Feb 2012 00:31:42 Insomniac wrote:
Hey gang,
I need to find (so I can look through) a bunch of a certain type of files. I tried using the 'find files/folders' thing on the menu, but it didn't help me at all no matter how much info I put in to give it a hand.
What I want to find, is *all* and *only* Gzip archive files made during a specific day/date in my /home/me/.mozilla/seamonkey/bliq9n9z.default/Cache/<a whole slew of folders here>/<and here>
For instance, one will be at /home/me/.mozilla/seamonkey/bliq9n9z.default/Cache/0/00/ and will be named 81858d01. It won't have an extension, but in the 'type' column when using Dolphin it will be a Gzip archive.
A strange thing about those folders too...one could have been created(?) on 13 Feb 2012 yet will contain files that may have dates ranging from a created(again ?) jpg on 27 Jan 2012 to an 'unknown' type of 02 Feb 2012. There can be 2 to 20 files in any one of these folders and each will have a complete mixture of dated files in it and none have an extension other than in the 'type' column, unlike say, in my 'home' folder.
Is there some other way besides trying to use the find files/folders app in the kmenu? A better way? Even a commandline way, so long as someone tells me how and/or what to type is fine, heh.
I am sure there is an easier way. But try this: touch /tmp/start-time -t STAMP touch /tmp/stop-time -t STAMP find . \( -newer /tmp/start-time -and ! -newer /tmp/stop-time \) -exec file --mime-type {} \; | grep zip Where STAMP are the times as [[CC]YY]MMDDhhmm[.ss] The two files are just for find to have the dates of interest. Seems kludgy. But it works.
locate <options>
man locate for details...
-- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au ===================================================
Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-02-16 15:07, Rodney Baker wrote:
locate <options>
Locate will not find zipped files without extension. I would do a script, using find and file. - -- Cheers / Saludos, Carlos E. R. (from 11.4 x86_64 "Celadon" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk89FHEACgkQIvFNjefEBxr2iQCfXUKK2eUxqaIZn//SVILK21sB 8IUAn1NW9dqH6IKD/fPJP3CzxjdT/LWV =YNPu -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Insomniac said the following on 02/16/2012 09:01 AM:
Hey gang,
I need to find (so I can look through) a bunch of a certain type of files. I tried using the 'find files/folders' thing on the menu, but it didn't help me at all no matter how much info I put in to give it a hand.
You've just described why GUIs are useless. That's what I love about GUIs: They make simple tasks easier, and complex tasks impossible. -- John William Chambless You've hit on a case that matches that!
What I want to find, is *all* and *only* Gzip archive files made during a specific day/date in my /home/me/.mozilla/seamonkey/bliq9n9z.default/Cache/<a whole slew of folders here>/<and here>
I suspect that there are many GUI-wrappers around the real too for this, the command 'find'. There are limited variations on 'find' such as 'locate', which uses a database and so is a LOT faster in the cases where it applies and where the files concerned do not postdate the creation of that database. "find' is extremely powerful and while easy to use in the trivial case is difficult to master. Yours is a non trivial case. If I understand correctly, you are doing a 'find by content' - that its a zip file regardless of the file name/extension. You are going to have to use the "-exec command" option and the command will be something like the 'file' command with a grep to determine if it's a gzip As the above quote indicates, this is way beyond anything envisioned by a GUI designer. -- "The wide world is all about you: you can fence yourselves in, but you cannot for ever fence it out." -- JRR Tolkien, -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Insomniac <Insomniactoo@localnet.com> [02-16-12 08:57]:
I need to find (so I can look through) a bunch of a certain type of files. I tried using the 'find files/folders' thing on the menu, but it didn't help me at all no matter how much info I put in to give it a hand.
What I want to find, is *all* and *only* Gzip archive files made during a specific day/date in my /home/me/.mozilla/seamonkey/bliq9n9z.default/Cache/<a whole slew of folders here>/<and here>
....
Is there some other way besides trying to use the find files/folders app in the kmenu? A better way? Even a commandline way, so long as someone tells me how and/or what to type is fine, heh.
Only gui..: kfile Krusader tools -> search -> general (file name....) -> Advanced -> date (older than, newer than) these have similar functionality. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thursday, February 16, 2012 08:01 Insomniac wrote:
Hey gang,
I need to find (so I can look through) a bunch of a certain type of files. I tried using the 'find files/folders' thing on the menu, but it didn't help me at all no matter how much info I put in to give it a hand.
What I want to find, is *all* and *only* Gzip archive files made during a specific day/date in my /home/me/.mozilla/seamonkey/bliq9n9z.default/Cache/<a whole slew of folders here>/<and here>
For instance, one will be at /home/me/.mozilla/seamonkey/bliq9n9z.default/Cache/0/00/ and will be named 81858d01. It won't have an extension, but in the 'type' column when using Dolphin it will be a Gzip archive.
A strange thing about those folders too...one could have been created(?) on 13 Feb 2012 yet will contain files that may have dates ranging from a created(again ?) jpg on 27 Jan 2012 to an 'unknown' type of 02 Feb 2012. There can be 2 to 20 files in any one of these folders and each will have a complete mixture of dated files in it and none have an extension other than in the 'type' column, unlike say, in my 'home' folder.
Is there some other way besides trying to use the find files/folders app in the kmenu? A better way? Even a commandline way, so long as someone tells me how and/or what to type is fine, heh.
It seems that that 'find files/folders' app in kmenu actually works. I entered the barest minimum on each tab and it found what I needed. Very strange, as I'm of the opinion also that many gui apps aren't as thorough as a commandling command. This is one time I'm quite happy to have been proved wrong. On the Name/Location tab, I entered nothing in the 'Named' and told it to look in ///home/me and checked 'include subfolders' and 'show hidden files' On the Contents tab, I just had it look for Gzip archive in 'file type' pull down and checked 'include binary files' On the Properties tab, all I did was narrow the 'Find files' to that one day I was looking for and then clicked 'Find' and it did its magic. Thanks all for the suggestions though, but they mostly just confused me pretty badly even trying to read 'man find' it was like trying to learn mandarin chinese in two hours - not gonna happen, lol. -- There is no such thing as a hyphenated American who is a good American. The only man who is a good American is the man who is an American and nothing else. -Theodore Roosevelt, 1915 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Anton Aylward
-
Carlos E. R.
-
Insomniac
-
Patrick Shanahan
-
Rodney Baker
-
Roger Oberholtzer