Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create Placeholders for downloaded files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create Placeholders for downloaded files
Authored by: dyjo on Mar 26, '11 04:41:48AM
more strait forward I think, honores space chars in path names
mdfind -onlyin . kMDItemFSLabel == 1 | \
while read file; do
    test -f "$file" && echo "$file" && > "$file"
done
... as one liner
mdfind -onlyin . kMDItemFSLabel == 1 | while read file; do test -f "$file" && echo "$file" && > "$file"; done 


[ Reply to This | # ]