SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-11-07 05:20:59

facingeast
New Member
Registered: 2014-11-07
Posts: 1

Search text files and ect.

Is Recoll already in the CrunchBang distribution and how do I find which Python verson is installed...?
First working Linux on Dell D600.. Installation was a breeze.. Thanks to every one who has ever worked on CrunchBang...
I don't know much at all about the linux file system or utl. programs...  So my eyes may glaze over with too much detailed instruction...
Thanks for your help in advance...  smile

Facingeast

Offline

Be excellent to each other!

#2 2014-11-07 05:54:06

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: Search text files and ect.

python  -V
python3 -V

Either use Synaptic to search for the Recoll package (update first though), or

sudo apt-get update && apt-cache search recoll

You can also search Debian packages

And lastly - there is a forum search icon at the top right of the page wink Most questions will have been asked/answered before, so give that a go before posting a question here

EDIT the title of your post includes "Searching text files", but what was the question? You can search within text files using eg cat and grep.

If you are talking about searching for files with Recoll, then IMO it is a horribly bloated and slow application. Catfish filesearcher is already installed, but I find that the fastest way is to install and use mlocate (Catfish is a gui frontend end for the find and locate commands)

Last edited by damo (2014-11-07 05:58:50)


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#3 2014-11-07 07:24:03

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: Search text files and ect.

welcome to the forums, facingeast!

damo wrote:

If you are talking about searching for files with Recoll, then IMO it is a horribly bloated and slow application.

my words. i've tried it once. exactly once.
there's a version in the repos, but i guess it's not the newest.
do you know how to install software with either synaptic or apt-get? do you know crunchbang is based on (like, 99%) debian stable?

i think the best way to search for files (or text in files) is the "find" command.
it took me a while to learn how to use it (talk about eyes glazing over) but once i got it, it's the best.
e.g., to find all xml files in your home folder, recursively, use this:

find $HOME -name *.xml

if you search the whole file system, you have to use sudo, otherwise you'll get more "permission denied" errors than results:

sudo find / -name *.xml

and last not least:

man find

Last edited by ohnonot (2014-11-07 18:12:41)

Offline

#4 2014-11-07 09:10:22

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: Search text files and ect.

Welcome, facingeast!

ohnonot wrote:

i think the best way to search for files (or text in files) is the "find" command.

Find is extremely useful, definitely +1 smile

But... "text in files"? Surely that's a job for 'grep' not 'find' - or does find have some (more) options I don't know about?


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
#! forum moderator    BunsenLabs

Offline

#5 2014-11-07 09:39:19

brontosaurusrex
#! Red Menace
Registered: 2012-06-15
Posts: 1,643

Re: Search text files and ect.

Finding a File Containing a Particular Text String,

example; search for debian or fadein in directory (and sub dirs) documents;

egrep -R -H --color "debian|fadein" ~/documents

-R = recursive
-H = show file name
--color = color the hits

more: http://www.cyberciti.biz/faq/howto-sear … xt-string/

Last edited by brontosaurusrex (2014-11-07 09:44:39)

Offline

#6 2014-11-07 18:12:11

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: Search text files and ect.

johnraff wrote:

But... "text in files"? Surely that's a job for 'grep' not 'find' - or does find have some (more) options I don't know about?

oops, that was a blunder. i scratched it out.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo