|
|
Create Placeholders for downloaded files
Be warned this script is buggy.The
awk command matches all files containing a '1' in their name
awk -F " = " ' $2 ~ /1/ { getline;print $2; }'
matches all second fields containing '1' ( ie "My Download1.pdf").
What the author meant was
awk -F " = " ' $2 == "1" { getline;print $2; }'
Don't use it uncorrected you'll erase all of your files in the current directory containing a '1' in their name!
Create Placeholders for downloaded files
There are a substantial number of files containing a "1" in my download directory which haven't been deleted.
Create Placeholders for downloaded files
Yes sorry if that wasn't clear my comment was only on the $2 ~ /1/ part that matches every second field containing a '1' (so it matches filenames containing a '1' but it also matches kMDItemFSLabel = 1 ) not on the overal effect of your script. Glad you liked the fix. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|