LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2016, 09:13 AM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,726

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question Question on inbuilt PCManFM search function.


Hi.

How can I show all files that contain either 'bird' and 'how' in this PCManFM search? I tried [in attached image] but no joy yet. If I just have *bird* or *how* on their own they show just files with those words.

Thanks.
Attached Thumbnails
Click image for larger version

Name:	PCManFM_search.png
Views:	675
Size:	28.9 KB
ID:	22396  
 
Old 07-10-2016, 06:49 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
tick the box marked regular expression and use a regex
 
Old 07-11-2016, 12:12 PM   #3
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,726

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question

Hi Keith.

I tried both these but no joy:
bird, how
bird + how
 
Old 07-11-2016, 12:42 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by LinusStallman View Post
Hi Keith.

I tried both these but no joy:
bird, how
bird + how
Neither of these is a regex, eg
Code:
keithhedger@LFSHal:/media/LinuxData/Development64/Projects/ViCp-> echo "how now brown cow"|sed -n '/how\|bird/p'
how now brown cow
keithhedger@LFSHal:/media/LinuxData/Development64/Projects/ViCp-> echo "is it a bird"|sed -n '/how\|bird/p'
is it a bird
keithhedger@LFSHal:/media/LinuxData/Development64/Projects/ViCp-> echo "none of the above"|sed -n '/how\|bird/p'
keithhedger@LFSHal:/media/LinuxData/Development64/Projects/ViCp->
As you can see the first to sentences produce an output, the first contains 'how' the second 'bird', the third produces no output because it doesn't contain either, the -n arg to the sed commnand means no default output, the 'p' means print the match, the '|' in the regex means 'or' and needs to be escaped when using from the command line, you may not need it.
 
Old 07-11-2016, 12:49 PM   #5
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,726

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
But I want to use the PCManFM search function, not a terminal.
 
Old 07-11-2016, 12:52 PM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
select use regex and use a regex in the search box as i said you are not using a regex search term these
Code:
bird, how
bird + how
are not regex search terms, this
Code:
/how|bird/
is.
 
Old 07-11-2016, 01:00 PM   #7
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,726

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Unhappy

Quote:
Originally Posted by Keith Hedger View Post
select use regex and use a regex in the search box as i said you are not using a regex search term these
Code:
bird, how
bird + how
are not regex search terms, this
Code:
/how|bird/
is.
Code:
/how|bird/
Does not work.
 
Old 07-11-2016, 01:55 PM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
For gossake put a bit of effort into it!
heres how for the terminally stupid or cant be bothered.
in a folder conataining 3 files 'bird', 'fish' and 'how'
click 'Tools->Find Files...'
mark the tick box 'Use regular expresssion'
Enter bird|fish into the search box and click 'Find'
Look at results.
 
Old 07-12-2016, 02:10 PM   #9
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,726

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Thumbs down

Quote:
Originally Posted by Keith Hedger View Post
For gossake put a bit of effort into it!
heres how for the terminally stupid or cant be bothered.
in a folder conataining 3 files 'bird', 'fish' and 'how'
click 'Tools->Find Files...'
mark the tick box 'Use regular expresssion'
Enter bird|fish into the search box and click 'Find'
Look at results.
There's no need to be rude and condescending. Those insults were way out of line.

You earlier posted
Code:
/how|bird/
which I tried and did not work.

Had you originally just posted:
Code:
how|bird
then this would have been sorted out a lot sooner.
 
Old 07-12-2016, 03:02 PM   #10
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
After 500+ and a linux user for at least 6 years, going by by you tags at the side, posts I would expect you to be able to see the difference between an example and a 'to the letter' example if you had been a newb I would have explained in more detail, this was not hard to do but you seem to not want to put any effort into it, so the insult stands, "thanks" and goodbye!

Last edited by Keith Hedger; 07-12-2016 at 05:25 PM. Reason: whis i culd tpye
 
Old 07-13-2016, 09:14 AM   #11
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,726

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by Keith Hedger View Post
After 500+ and a linux user for at least 6 years, going by by you tags at the side, posts I would expect you to be able to see the difference between an example and a 'to the letter' example if you had been a newb I would have explained in more detail, this was not hard to do but you seem to not want to put any effort into it, so the insult stands, "thanks" and goodbye!
Where the hell did you get '16 years' from? I see you've since edited your post.
You posted incorrect code and then hurled insults, yet still feel in the right -- oh my you are arrogant.
I did put in some effort -- I figured out that how|bird was correct but only after your disdainful #8 post.
Try to be less uncivil to other users in future.

Last edited by linustalman; 07-13-2016 at 09:15 AM.
 
Old 07-14-2016, 02:26 AM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i subscribed to this thread days ago, because i use pcmanfm myself.

to me, Keith Hedger's tips were gold, and i agree that op did not put any effort into finding that out for themselves.

just my 2ct, and let's not let this escalate.
 
Old 07-15-2016, 12:58 PM   #13
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,726

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by ondoho View Post
i subscribed to this thread days ago, because i use pcmanfm myself.

to me, Keith Hedger's tips were gold, and i agree that op did not put any effort into finding that out for themselves.

just my 2ct, and let's not let this escalate.
Actually I did put in some effort. Did you not read post #11?

Do you also agree with his haughty #8 post with insults?
 
Old 08-29-2017, 08:40 AM   #14
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,726

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question

How do I find only files that contain e.g. the words 'cat' and 'dog' and not all files that contain either/and cat or dog?
 
Old 08-31-2017, 04:51 AM   #15
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,726

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I'd expect something like this to work:

cat&dog

cat|dog - seems to mean show all file names that contain "cat and dog" and "cat or dog".

For example in Caja [image attached] - I only have to put "cat dog" in the search field to only show files names that contain both words.
Attached Thumbnails
Click image for larger version

Name:	caja.png
Views:	118
Size:	11.9 KB
ID:	25803  
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PCManFM Desktop Question MTK358 Linux - Software 2 05-26-2010 04:20 PM
A quick question about pcmanfm KDHofAvalon Linux - Software 0 07-18-2008 07:34 AM
New search, less function? itsjustme LQ Suggestions & Feedback 14 01-07-2006 01:03 PM
use the search function before asking bosewicht Linux - Newbie 6 08-30-2005 02:34 AM
Quick VIM question (unhighlighting search terms after search) lrt2003 Linux - Newbie 5 05-08-2004 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration