Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mdimport(1) [osx man page]

mdimport(1)						    BSD General Commands Manual 					       mdimport(1)

mdimport -- import file hierarchies into the metadata datastore. SYNOPSIS
mdimport [-VXLArgn] [-d level | category] [-w delay] file | directory DESCRIPTION
mdimport is used to test Spotlight plug-ins, list the installed plug-ins and schema, and re-index files handled by a plug-in when a new plug- in is installed. The following options are available: -g plugin Load the plugin at the provided path, ignoring system installed plugins. Useful for testing plugins that have not yet been installed. -V Print timing information for this run of mdimport. -A Print out the list of all of the attributes and their localizations in the current language and exit. -X Print the schema file and exit -r Ask the server to reimport files for UTIs claimed by the listed plugin. For example, the following would cause all of the chat files on the system to be reimported: mdimport -r /System/Library/Spotlight/Chat.mdimporter -p Print out performance information gathered during the run. -L Print the list of installed importers and exit. -d level Print debugging information. Level can be 1-4. -n Don't actually set the attributes on the file. Useful for debugging. -w msecs Wait for the specified interval between scanning files. NOTES
The -f switch is obsolete in Leopard and beyond. SEE ALSO
mdfind(1), mdutil(1), mdls(1) Mac OS X Oct 27, 2004 Mac OS X

Check Out this Related Man Page

mdfind(1)						    BSD General Commands Manual 						 mdfind(1)

mdfind -- finds files matching a given query SYNOPSIS
mdfind [-live] [-count] [-onlyin directory] [-name fileName] query DESCRIPTION
The mdfind command consults the central metadata store and returns a list of files that match the given metadata query. The query can be a string or a query expression. The following options are available: -0 Prints an ASCII NUL character after each result path. This is useful when used in conjunction with xargs -0. -live Causes the mdfind command to provide live-updates to the number of files matching the query. When an update causes the query results to change the number of matches is updated. The find can be cancelled by typing ctrl-C. -count Causes the mdfind command to output the total number of matches, instead of the path to the matching items. -onlyin dir Limit the scope of the search to the directory specified. -name fileName Searches for matching file names only. -literal Force the provided query string to be taken as a literal query string, without interpretation. -interpret Force the provided query string to be interpreted as if the user had typed the string into the Spotlight menu. For example, the string "search" would produce the following query string: (* = search* cdw || kMDItemTextContent = search* cdw) EXAMPLES
The following examples are shown as given to the shell. This returns all files with any metadata attribute value matching the string "image": mdfind image This returns all files that contain "MyFavoriteAuthor" in the kMDItemAuthor metadata attribute: mdfind "kMDItemAuthor == '*MyFavoriteAuthor*'" This returns all files with any metadata attribute value matching the string "skateboard". The find continues to run after gathering the initial results, providing a count of the number of files that match the query. mdfind -live skateboard To get a list of the available attributes for use in constructing queries, see mdimport(1), particularly the -X switch. SEE ALSO
mdimport(1), mdls(1), mdutil(1), xargs(1) Mac OS X June 10, 2004 Mac OS X
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users


please is there any facility or site where one can chat online with other unix professionals. Needed urgently. (4 Replies)
Discussion started by: lealyz
4 Replies

2. UNIX for Dummies Questions & Answers


do i need a plug-in to run dvd movies? what rpm and src files do i need ? i run lycoris (1 Reply)
Discussion started by: amicrawler2000
1 Replies

3. UNIX for Dummies Questions & Answers

Compile X-Chat

Hi! Ive Solaris 8 x86 and i want to compile X-Chat. Ive installed glib-1.2.10-sol8-intel-local from But the configure script of XChat tells me the following: ----- checking for pkg-config... /usr/local/bin/pkg-config checking for GLIB - version >= 2.0.3... sh:... (3 Replies)
Discussion started by: donald1111
3 Replies

4. OS X (Apple)

Little help needed installing gnuplot on Mac OS X

I am using Mac OS X 10.4.9 and am trying to install gnuplot-4 but I run into some problems. Hopefully someone recognizes them and can help. - I have installed aquaterm 1.0.1 and this works fine. - Then I installed gnuplot-4 by clicking the installer package. - When I then go into a terminal... (1 Reply)
Discussion started by: karman
1 Replies

5. Shell Programming and Scripting

how to plug dummy data into zero byte file?

Hi, How can I plug dummy data into files that are zero bytes ? Here is a sample script for removing the files I think. find /path/to/directory -size 0 -type f -exec rm -f {} \; I am not sure how to change it to echo "dummy" > zerobyte.txt. Any suggestions? Here's the farthest I got:... (2 Replies)
Discussion started by: ihot
2 Replies

6. OS X (Apple)

Vi in Leopard

I read last night in MacWorld that Leopard included a new version of vi. Is there a list somewhere of the changes? I use vi a lot. Gale (5 Replies)
Discussion started by: Gale Gorman
5 Replies

7. UNIX for Dummies Questions & Answers

Find unix path to a file?

I know this is very newbie ... but I need help determining the proper file path to file...Have no idea how to do this I'm on a Mac OS X 10.6 Snow Leopard thanks very much (4 Replies)
Discussion started by: jmarc
4 Replies

8. UNIX for Dummies Questions & Answers

copy files

Hi Team, I am unable to copy the files, when i run the below script, i am getting error as file not present, not sure what i am missing. # File to be looked upon File_Pattern='*.zip' TMP_FILE=flagfile Check=`find $Directorypath -name $File_Pattern -type f -newer $TMP_FILE -print |... (6 Replies)
Discussion started by: Naveen_5960
6 Replies

9. Shell Programming and Scripting

greping $2 into a list

Hi When I run this command: lsuser -a auditclasses ALL I got: user1 auditclasses=general,objects,cron,files,rbac,audit,lvm,aixpert user2 auditclasses=general,objects,cron,files,rbac,audit,lvm,aixpert user3 auditclasses=general,objects,cron,files,rbac,audit,lvm,aixpert user4... (7 Replies)
Discussion started by: iga3725
7 Replies

10. UNIX for Dummies Questions & Answers

gmake on Mac

I am using my teminal on Mac to run some files with gmake, (I used unix before,but now I am trying to run it frm my mac) and I get the error message: -bash: gmake: command not found Any idea what the problem might be? Thanks! (10 Replies)
Discussion started by: cosmologist
10 Replies

11. Hardware

iPhone Not being detected

I'm New to the linux world I'm running OpenSuse and as soon as I installed everything was wokring like a charm. and i said to myself I'm so keeping this OpSys! everytime i would plug in my iPhone it would read it as anything else as a filesystem and i was able to go through the device files an etc,... (9 Replies)
Discussion started by: JuankyKong
9 Replies

12. HP-UX


How can i see if jdk is installed or not on my system. I am on HP UX B.11.31 (3 Replies)
Discussion started by: bang_dba
3 Replies

13. Shell Programming and Scripting

Send mdfind output into script file

I'm using mdfind to list images according to their orentation, thus:- mdfind " kMDItemOrientation == 1" -onlyin "/Users/me/Documents/STUDY/AskForum" which outputs /Users/me/Documents/STUDY/AskForum/01 (5).jpg /Users/me/Documents/STUDY/AskForum/01 (4).jpg... (3 Replies)
Discussion started by: waggs
3 Replies

14. Web Development

Vue.js Steam Chat

This Vue.js chat component installed easily: npm i --save vue-steam-chat I was able to set it up and change the background color in the component css file to match the forums in seconds: <template> <div style="height: 600px;... (17 Replies)
Discussion started by: Neo
17 Replies

15. What is on Your Mind?

PubNub Live Chat Beta Testing

Dear All, We are now beta testing our future "Live Chat" area using PubNub technology. This purpose of this testing is to test the core system, in general, and to see how many, if any, bugs crawl out of the woodwork. This "Live Chat" is not the... (48 Replies)
Discussion started by: Neo
48 Replies