pFind 6.3

Filemanagers, partitioning tools, etc.
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#646 Post by zigbert »

Be aware that /mnt/home is a symlink to /initrd/mnt/dev_save.
Please activate the 'Follow symlinks' checkbox.

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

#647 Post by B.K. Johnson »

Zigbert wrote::
Please activate the 'Follow symlinks' checkbox.
Target in /mnt/home/ found with that box checked. Thanks.

As most of my searches are within /root and /home, is there a way I can change the default?
[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
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#648 Post by zigbert »

default values is set from menu File>Configure.

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

#649 Post by B.K. Johnson »

Got it working. Thanks.
[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]

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

#650 Post by live »

Feature request:

When pfind list all the matches it should be possible to physically move the files, the right-click option "move" only create symlink.

Thanks

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

#651 Post by don570 »

Try the command feature in the menu

I think you select some files in the hit list and write something like

mv [files] /root

Zigbert gives the instructions...

_______

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

#652 Post by zigbert »

live
Thank you for the feedback. The bug is added to the todo list.
In the meanwhile, please follow don570's advice. The syntax is

mv [FILE] /path/

explained in the pFind gui

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

#653 Post by don570 »

Code: Select all

mv [FILE] /path/ 
I was mixed up because it does support multiple 'files'

Method: Select filename from hitlist and use middle mouse click to transfer
____________________________________________________

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

#654 Post by B.K. Johnson »

@Zigbert
I was intruiged by rmcellig using pFind to copy search results to a directory for his radio show. I thought it would be even more space efficient to symlink rather than copy the search results. Alas, the "Link" option allows only a single file to be symlinked. Would you consider implementing a similar GUI and execution as the "Copy" case for symlinking multiple files? We would essentially be able to create playlists.
[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
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#655 Post by zigbert »

will look at it... just need some time ;-)

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

#656 Post by zigbert »

B.K. Johnson wrote:@Zigbert
I was intruiged by rmcellig using pFind to copy search results to a directory for his radio show. I thought it would be even more space efficient to symlink rather than copy the search results. Alas, the "Link" option allows only a single file to be symlinked. Would you consider implementing a similar GUI and execution as the "Copy" case for symlinking multiple files? We would essentially be able to create playlists.
pFind can do what you ask for.
It allows advanced managing of searchresult.
Check out menu->Actions->Execute command
Attachments
screeny.jpg
(35.73 KiB) Downloaded 167 times

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

#657 Post by don570 »

I wonder if it is possible to grep through the file list to search for a term
and then print the line.

like

Code: Select all

grep -i '<expression>'  [FILE]   > /root/results.txt
Maybe clicking advanced button is better
for searches of text in file :oops:
but the above method might reduce the number of files to search inside

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

#658 Post by zigbert »

Yes you can
I like the idea, I haven't thought of that one

Code: Select all

grep -i '<expression>'  [FILE]   >> /root/results.txt

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

#659 Post by B.K. Johnson »

zigbert
Thanks. That wasn't long at all. :o
Your posted solution works fine :) , but I'd much prefer what I asked for. The reason is that for a long path, there is trouble remembering it, more typing and attendant risk of mistyping than finding the directory with ROX or whichever file manager is in use. In fact, the actual path I was working with was
/mnt/sda1/Documents and Settings/user/My Documents/My Music/Playlist-1
So much easier to remember and type /root/test2
[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
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#660 Post by zigbert »

B.K. Johnson
I understand. My point is that don570 also shows a great action. Somewhere we get to the 'advanced' point - and then the 'execute command' gives us the freedom to do whatever... To implement all kind of actions with different parameters is not the way I want to go.

We have many tools in Puppy for building playlists.
- pMusic is my offer.
- don570 has given us mkplaylists
- pFind can export to textfile (which in fact is a simple m3u playlist)
- gmplayer

Note!
To add the long path to the 'execute command' field, just drag the folder from rox into the field.

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

Post Reply