[SOLVED] Question on inbuilt PCManFM search function.
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152
Rep:
Quote:
Originally Posted by LinusStallman
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.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152
Rep:
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.
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.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152
Rep:
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.