The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
1answer
45 views

'cd' complexity on ext4

In order to store attachments, a /path/to/atts/ directory will have numerous child-directories (product IDs) created (from 1 to ~10,000 or maybe more in the future), and in each of this subdir, 1 to ~...
0
votes
2answers
35 views

searching a file [closed]

I want to find in the system a file, and I know part name of it. How could I do that? I tried unsuccessfully the command: find / "*partname*" The problem is probably very easy however I cannot find ...
0
votes
1answer
109 views

more less …skipping… when searching

When I search a file in less or more, it will remove lines and replace them with "skipping". Does anyone know what causes this and/or how to avoid it? After I '/' search a log file using either more ...
1
vote
1answer
36 views

Examine a bunch of huge files

I have a folder with big files (few GB each). I would like to search aPATTERNthrough these files. I can do this with grep or ack: $ grep -n 'PATTERN' /path/to/files/*.log Now, I have a list with ...
0
votes
1answer
83 views

How to grep a string in multiple files on basis of month

I have a set of multiple log files and i want to search specific strings from those multiple log files between time period say July to October 2015. Please note there are multiple log files for each ...
3
votes
2answers
123 views

How is it that the same find command can give two different results?

This has happened to me twice (EDIT: many times and I can replicate it) now. I'm working on a Raspberry Pi, looking for a file I already know exists and so I type this command: sudo find / -iname '...
1
vote
1answer
30 views

How do I get grep to search for ebuilds with specific strings and produce an output containing only the ebuild's location?

I have been trying to create a Bash script function that can be used to search for and open ebuilds with desired strings in Atom (the text editor). This is my current Bash script function (stored in ~/...
0
votes
0answers
18 views

How do I find duplicate files within in the same tree but different folder/directory then delete it [duplicate]

say I have a directory tree like this but all screwed up. where it may have duplicate mp3 within another subdirectory somewhere within this same tree. But I am not sure where it is at. I only have a ...
0
votes
0answers
45 views

Cannot find files on internal HDD

My Fedora system is installed on my SSD, and GNOME can easily find files there. However, files on an automounted internal HDD are not found. Is there a way to make GNOME index the HDD? I'm ...
0
votes
1answer
37 views

Egrep expression as a grep expression

I have this egrep command which's expression searchs for filenames with length 3 (excluding .extension): ls | grep -E '^.{3}\.+' However, I'm unable to write this with grep only, is it possible?
0
votes
0answers
197 views

Quick hit application for searching files on Linux Mint?

In both Windows and Mac OSX, there is some kind of a quick search application that returns both programs and files in your documents. For Windows, this is the start menu, and for OSX this is the ...
0
votes
2answers
42 views

How to search between the 2nd and 3rd delimiters

So, I have a data file and I would like a match to occur only if a match is found between the 2nd and third Vertical Bars (|) So given this data sample, I if I search for 'wilson' I want the 2nd line ...
1
vote
1answer
46 views

finding directory entries that contain at least one subdirectory from a list

I have a file which contains directories and subdirectories and I need to search for lines which are subdirectories. I used the grep command to perform the action but it does not work. Can you please ...
1
vote
1answer
111 views

Search directories and return size / disk space usage for each

On my server I have a bunch of accounts that have WordPress installed and also have backup directories in the format: softaculous_backups. I can find all the directories using the command: $ find / ...
2
votes
4answers
791 views

Search and Delete duplicate files with different names

I have a large music collection stored on my hard drive; and browsing through it, I found that I have a lot of duplicate files in some album directories. Usually the duplicates exist alongside the ...
12
votes
3answers
3k views

How can I search in vim for a pattern that is NOT case sensitive?

I occasionally search through files in vim or less using / or ? but as far as I can tell, the search patterns are case sensitive. So for example, /foo won't find the same things that /FOO will. Is ...
1
vote
1answer
36 views

How to disable mail search in tracker-needle?

I wish to search only my local folders. Everything was ok, until I installed thunderbird and downloaded mail. Now searches take too much time, because tracker searches the mail to. Where in the ...
2
votes
2answers
234 views

Move specific files from multiple directories

I have got tons of directories with thousands files of various filetypes: dir |__ subdir | |__ file.foo | |__ file.bar | |__ file.txt | |__ (...) |__ (...) What is fast and ...
1
vote
0answers
91 views

Tracker-extract and Tracker-store processes consuming huge Amount of RAM

I am using Arch Linux, kernel 3.16. From last one week my two processes tracker-extract and tracker-store are taking too much RAM. It results in hangup of system once in every 2 hours. tracker-...
1
vote
1answer
24 views

big-scale tracker alternative for server filesystems

I'm using 8tb RAID storage (XFS filesystem) filled witch lots of files. By default Suse had installed tracker for file indexing/searching but: It's constantly reading HDDs (like for half a year now ...
0
votes
1answer
3k views

How to search and list files and folders with specific pattern? [duplicate]

Imagine I only know a part of the name of the folder(s) or file(s), but don’t know their location(s) in the computer. I even don’t know whether they are hidden or not. How can I search and list them ...
2
votes
2answers
462 views

What tools can I use for PDF indexing?

In our working group we used Recoll on a Ubuntu PC to index all the PDF. For a while we moved everything to a Redhat server. Is there a Recoll alternative which doesn't requires a GUI adn support ...
2
votes
1answer
3k views

Find font file from font name on Linux

I have a font with the name Media Gothic. How can I find the file name of that font in Linux? I need to copy that file to another system. I've tried: find /usr/share/fonts/ -name '*media*' But this ...
2
votes
3answers
147 views

How to list backup files missing corresponding real files?

I accidentally deleted some files spread across my home directory, but I do not know exactly which ones were removed. How can I get a list of all backup files missing their corresponding file? (...
7
votes
2answers
5k views

Remove unknown unicode character from textfiles - sed, other bash/shell methods

I need to search and replace all occurences of an unknown character in some files having the same name. Opening such files with vi, I read <91> code for that character. Opening them with nano, I ...
1
vote
4answers
111 views

search for multiple condition and then redirect output

How can you search for all lines containing “55=MSFT” and not containing the string “OPEN” in a file, then redirect the output to a file named MSFTFILE?
1
vote
1answer
36 views

Search for all messages containing a sring only in those files which is mentioned in a text file

You are in a directory with a large number of FIX logs that are over 1GB in size. You have a text file containing the names of 10 of those files. How can you search for all messages containing “50=...
1
vote
2answers
718 views

Find duplicate file names with specific matching pattern

I have a folder with some files (snippet of the contents of the folder) PAT1.URGRSVP.50.WR786842JOB11632.WRS20140.FILE0005.DAT PAT1.URGRSVP.50.WR786842JOB11643.WRS20140.FILE0003.DAT PAT1.URGRSVP.51....
13
votes
7answers
33k views

How can I “grep” patterns across multiple lines?

It seems I am misusing grep/egrep. I was trying to search for strings in multiple line and could not find a match while I know that what I'm looking for should match. Originally I thought that my ...
8
votes
3answers
11k views

How to search for video files on Ubuntu?

I had downloaded a video a few months back. I'm not very well remembering the name by which it is saved. Is there any command or any method that will output only video files so that I can search for ...
1
vote
2answers
609 views

Is it possible to search text within text-files using Catfish?

I want to find a line in system files - that is I need to scan a lot of files for that. I learned that I can use grep -r <word> * replacing with the needed expression. Can Catfish do ...
5
votes
1answer
5k views

How search for a file beginning with either a or z and ending with a or z?

I attempted find -name 'a*' 'z*' '*a' '*z' but it gave me the error code find: paths must precede expression: z* I know how to find files starting with a though z, or ending with a-z, but not ...
8
votes
4answers
841 views

find all end subdirectories in a tree

given the following structure: oz123@debian:~/ $ tree . . ├── a │ ├── a1 │ ├── a2 │ └── a3 ├── a1 │ ├── a11 │ ├── a12 │ └── a31 ├── b │ └── b1 │ ├── b11 │ │ └── b21 │ ...
2
votes
2answers
5k views

Get list of all files by mask in terminal

I want to find all *.h,*.cpp files in folders with defined mask, like */trunk/src*. So, I can find separately *.h and *.cpp files: find . -path "*/trunk/src/*.h" find . -path "*/trunk/src/*.cpp" ...
1
vote
0answers
417 views

Installing mlocate on mac OS 10.7

I'm a beginner in using Linux. I'm trying to use the command "locate". Once I use this command, I get an error that says the locate database should be created. I used the command below to create that ...
3
votes
2answers
143 views

Vim global search in a project

I started using vim two weeks ago switching from sublime and I am a ruby developer I know for a fact that Ack and Ag work very good on a Mac while they're not optimized for my Ubuntu machine. These ...
5
votes
3answers
18k views

List all files in a directory recursively but exclude directories themselves

Simple question, I'm running the following find command: find . -type d \( -path ./.git -o \ -path ./log -o \ -path ./public -o \ -path ./...
2
votes
2answers
2k views

How to find files with a certain subpath?

I need to find all xml-files that are placed in folders named config. Also config must be somewhere under a folder named trunk. For example, I am interested in all files like below: ~/projects/e7/...
10
votes
6answers
86k views

List the files containing a particular word in their text

I would like to list the files recursively and uniquely that contain the given word. Example: Checking for word 'check', I normal do is a grep $ grep check * -R But as there are many occurrence ...