0
votes
1answer
21 views

OS X: Copying only files without a special string in filename

I have to copy only files from a folder that don't have following string in its filename: NNNNxNNNN (a 3 or 4 digit number followed by the character x followed by a 3 or 4 digit number again -> it's ...
5
votes
7answers
1k views

How do I return only file names from the find command?

I'm looking to get a list of just file names (without the rest of the path) when executing the find command from a terminal. How do I accomplish this on the mac?
1
vote
1answer
240 views

Find command doesn't work for certain subdirectories

I just downloaded some source code from a repository and I'm trying to locate a specific file in it. For simplicity, assume that the entire project has the following directory hierarchy ...
2
votes
3answers
490 views

In the Mac terminal, how do I “find” a file and then quickly cd to the parent directory?

I want to open terminal, find a file or folder, and quickly navigate to that folder or the parent directory of the file. I can quickly get the path using find ~ -name 'filename.txt' but I can't ...
4
votes
1answer
265 views

How to find all jpeg images of the same camera model

Recently during a installation messup , I lost all my files from my windows NTFS drives. I installed on testdata on Ubuntu 12.10 Desktop edition and with the help of photorec could recover a lot of ...
0
votes
1answer
175 views

Finding text in Ubuntu (gnome) terminal output [duplicate]

Possible Duplicate: Search Terminal Output Imagine this scenario: You run a command at gnome terminal. This command has made a bunch of outputs to the terminal. After some time, you ...
3
votes
2answers
400 views

How can I retain grep's match highlighting when piping find into grep?

If I run grep foo bar.txt, grep highlights each occurrence of "foo" in bar.txt. But sometimes I want to use find to determine which files grep searches. So I do something like this: find . -iname ...
1
vote
2answers
314 views

List all files in a directory matching a string and copy output

I'm trying to create a series of playlists on my MP3 player, running Rockbox, by finding a file matching a string, using find /cygdrive/g/MUSIC -type f -name "Search Criteria" | ...
4
votes
1answer
2k views

How do I get files found by command-line 'find' ordered by modification date in OS X?

Using the Mac OS X Terminal, how do I write a find command that orders results by modification date (most recent first)? There are similar questions already, but they refer to GNU find and POSIX, but ...
8
votes
4answers
20k views

How do I find a file by filename in Mac OSX terminal?

I want to find a file on my Macbook with the filename: abc.dmg. I've tried to use spotlight, but it doesn't find it. When I tried find, and used: find -name abc.dmg -path /, I got errors back. What ...
14
votes
9answers
21k views

Copy all files and folders excluding subversion files and folders on OS X

I'm trying to copy all files and folders from one directory to another, but exclude certain files. Specifically, I want to exclude subversion files and folders. However, I'd like a general yet ...