Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Search Forums:



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-08-2012
Registered User
 

Join Date: Feb 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
rm output from mdfind

I am trying to delete all aliases from a specific location. so far i have:

Code:
 rm -f `mdfind -onlyin /Users/steve/Desktop/Test 'kMDItemKind=Alias' /`

i thought this would delete all files that were Aliases using ItemKind, but it will not delete the files.

However, doing just mdfind -onlyin /Users/steve/Desktop/Test 'kMDItemKind=Alias' , it finds all of the alias files.

And, when I add rm -f to run on the output, it will only work if the alias is titled "Alias" instead of "Example alias"


Please Help!!!
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
iostat output vs TPC output (array layer) arizah Filesystems, Disks and Memory 3 04-27-2011 11:17 AM
awk: round output or delimit output of arithmatic string jelloir Shell Programming and Scripting 1 06-18-2010 03:07 AM
Converting line output to column based output npatwardhan Shell Programming and Scripting 8 03-24-2010 08:40 AM
Expect - Interact output hangs when large output natedog Shell Programming and Scripting 0 08-27-2008 11:21 AM
how to make a line BLINKING in output and also how to increase font size in output mail2sant Shell Programming and Scripting 3 04-14-2008 07:30 AM



All times are GMT -4. The time now is 04:47 AM.