pFind 6.3

Filemanagers, partitioning tools, etc.
Message
Author
B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#661 Post by B.K. Johnson »

zigbert
Forgive me for being a PITA. After this, I'll shut up. :lol:
The hope was that there would be no need to switch to another program after using pfind.

You wrote:
To add the long path to the 'execute command' field, just drag the folder from rox into the field.
This would have been ideal but it doesn't work for me :( because my path has spaces in it. Enclosing the path in quotes doesn't work either. :cry:
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#662 Post by don570 »

some suggestions:

Image

Image

Image

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#663 Post by B.K. Johnson »

I must be sniffing too much of that alcoholic Christmas spirit in the air why you guys don't get my point.
In pFind, say I enter celine in the search window, click on the Advanced button and set the File and Sound check boxes before clicking the Search button. pFind returns a list of songs from which I can select (highlight). Among the options given when I right-click are Copy, Move and Link. The Copy option allows the user to navigate to a destination directory using the File Manager. This is not provided for neither the Move or Link options; one has to type in the path, a cumbersome, old-fashioned procedure fraught with typing errors. Clearly, this is a "design flaw" and I use that term loosely and benevolently :P . So, when I made my post, the desire was to place a selected number of symlinks in a directory. From VLC or Deadbeef I could select that directory to play. Perhaps my allusion to playlist has thrown both zigbert and you don570 off kilter. I wasn't looking for a file with a list of files nor a standard playlist.
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

anewuser
Posts: 93
Joined: Sun 05 Feb 2012, 20:00

#664 Post by anewuser »

Will pFind ever work along puppy's locate? Just curious.

No issues whatsoever with pfind, it works as it is. Just some cosmetics configurations that would help fit all info into the screen, such as a pop up windows instead of horizontal scroll bars to get path and filenames with in the work space area.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#665 Post by don570 »

I've been modifying my Bulldog finder program to do a search for text in a file list.

So far it's very fast and seems useful. Here's my script so far.
I use 'while read LINE' to go line by line through the list of pathnames.
I found that the list of path names must end with a line ending character
or else the final path name won't be processed.

I think I'll put a button that says 'Search for text' in window.

Code: Select all

#!/bin/sh
rm -r /tmp/bulldogsearch.txt
[ !  -s  /root/list.txt ] &&  xmessage  "zero size file" && exit 0  

echo "" >> /root/list.txt  # file must end  with  line ending
cat /root/list.txt |
while read LINE  # go through list of files on hit list
do
echo LINE= $LINE
grep -i -H -n 'some_text'   "$LINE"   >> /tmp/bulldogsearch.txt

done
echo +++++++++++++++++++++++++++++++++
cat  /tmp/bulldogsearch.txt

exit 0

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#666 Post by zigbert »

Please bring up any ideas you get.
pFind is not on my priority list right now, but when time comes, I scan this thread for ideas and requests.

Thank you
Sigmund

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#667 Post by don570 »

I posted bulldog finder 4.0 . It has 'Search for text' feature.
It works well but it takes about 15 seconds to search through
several hundred files.

It wasn't too hard to do since I already had a list of files to search .

If you were to do the same thing then you would first have to create a list
of selected files like I did.
___________________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#668 Post by don570 »

I was just told by James Bond that pfind temp files aren't deleted between
boots. Is it possible to include a script in pet package to do the job?

____________________________________________________

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#669 Post by zigbert »

That's true
What is the problem?

Check out the files in
/root/.pfilesearch/tmp/
/root/.pfind/tmp/

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#670 Post by don570 »

I am currently using fatdog arm which uses a very old version of pfind
pfind-4.21-noarch-1.tbz
pfilesearch-1.35-noarch-1.tbz

and I noticed that the search results stayed in /tmp

I rebooted and they were still there.
I assume that a change has been made in current version.

So James Bond suggested I write a script to remove them.

(Actually I am making a zip archive of the fatdog arm OS and I am removing
all the fluff from the archive to make the archive size as small as possible
to distribute to the forum.
It's around 300mb but perhaps I can reduce it a bit.
That's why I became interested in /tmp.
I found that the fatdog arm OS can be installed by simply dragging the files
out of the zip archive to an SD card. Neat!!)

Also I want to get rid of background images, so I came up with new method
of creating a background image during bootup phase.
http://www.murga-linux.com/puppy/viewtopic.php?t=106428



________________________________________________________

live
Posts: 223
Joined: Wed 10 Feb 2010, 21:04

#671 Post by live »

Features request.
1/ Add the ability to compute MD5, SHA256 signature to the search result (after the results are shown)

why?
Because one may search on files, come with a bunch of result and wonder which are true copies.

2/ Dump the search result as it comes, as sometimes one search on a large content, but as soon as one sees the result it's no more necessary to continue the search.

Thanks

Sailor Enceladus
Posts: 1543
Joined: Mon 22 Feb 2016, 19:43

#672 Post by Sailor Enceladus »

Some issues with searching by date have been reported here:
http://www.murga-linux.com/puppy/viewtopic.php?p=899955#899955

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#673 Post by zigbert »

live wrote:2/ Dump the search result as it comes, as sometimes one search on a large content, but as soon as one sees the result it's no more necessary to continue the search.
This is not possible atm.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#674 Post by zigbert »

Sailor Enceladus wrote:Some issues with searching by date have been reported here:
http://www.murga-linux.com/puppy/viewtopic.php?p=899955#899955
Looking at it
Last edited by zigbert on Sun 24 Apr 2016, 20:36, edited 2 times in total.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#675 Post by zigbert »

B.K. Johnson wrote:You wrote:
To add the long path to the 'execute command' field, just drag the folder from rox into the field.
This would have been ideal but it doesn't work for me :( because my path has spaces in it. Enclosing the path in quotes doesn't work either. :cry:
The solution is to use a backslash in front of the space:

Code: Select all

/root/path\ to\ somewhere
Sorry for the too late answer

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#676 Post by zigbert »

don570 wrote:some suggestions:

Image
A great suggestion. Added to todo list

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#677 Post by zigbert »

Sailor Enceladus wrote:Some issues with searching by date have been reported here:
http://www.murga-linux.com/puppy/viewtopic.php?p=899955#899955
pFilesearch 2.2 should address date-searching-issues

tenochslb

#678 Post by tenochslb »

I love this software, it helps me a lot however I have noticed discrepancies in the search results within files. It appears to prefer incomplete words, preferably three letters plus a *

First, I created a "controlled environment", a directory containing 4 Files (xlsx, docx, txt, PDF) and started to search for the word juan:

Image

then juan* and nothing
Image

then, jua:
Image

now lets try, jua*:
Image
PFIND located 2 files containing the string jua

now lets check each file individually to see if that is accurate.
The PDF:
Image
yes it contains jua*

Lets see the xlsx:
Image
yes, correct.

Now, lets look at the files that according to PFIND do not contain the string jua*
the TXT first,
Image
correct there is no jua*

and finally the DOCX:
Image[/code][/b]
incorrect, there are jua* strings.

Hopefully this helps other users, and developers. It is a very cool piece of software.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#679 Post by zigbert »

tenochslb
Thank you for your investigation. I will look into it...

Sailor Enceladus
Posts: 1543
Joined: Mon 22 Feb 2016, 19:43

#680 Post by Sailor Enceladus »

@tenochslb, it is possible that pdf, docx and xlsx use encryption. I use "Search text in file" a lot, but only for actual acsii files, sh files, html files, etc. that I know are plain text. I think, if you actually opened a docx file as plain text, it would look very ugly.
Attachments
Screenshot.png
(106.13 KiB) Downloaded 405 times

Post Reply