TAILIEUCHUNG - 16.9. Putting It Together

. Putting It Together All of the Unix syntax and vocabulary presented in this chapter is all well and good, and it'll give you the rosy glow of having mastered something new. But it still doesn't entirely explain why Unix gives programmers sweaty palms and dilated pupils. | . Putting It Together All of the Unix syntax and vocabulary presented in this chapter is all well and good and it ll give you the rosy glow of having mastered something new. But it still doesn t entirely explain why Unix gives programmers sweaty palms and dilated pupils. The real power of Unix comes down the road when you start stringing these commands together. Suppose for example you want to round up all the TIFF image files related to your Yosemite project scale them to a common size convert them to JPEG files and copy them to an FTP site. How would you go about it You could of course use Spotlight to search for all TIFF files that have Yosemite in their names. But what if your images were named otherwise but kept in folders with Yosemite in their names You would have to find those folders first and then the TIFF files within them. You could perform the next step scaling and converting the image either manually or by a preprogrammed script or Automator workflow using a program like Photoshop or even iPhoto. Once the images were all done you d need to collect them and then use your favorite FTP program to upload them to the server. If you ve mastered Unix though you could shave 12 minutes off of your workday just by changing to an empty working directory in this example - Stage and typing this as one long line find - -type f -ipath yosemite tif -printo xargs -0 sips -Z 250 -s format jpeg --out - Stage ftp -u ftp Incoming Even after almost 50 pages of Unix basics that mass of commands probably looks a tad intimidating. And indeed if you ve never programmed before even the following breakdown may make your eyes glaze over. Nevertheless pieces of it should now look familiar find - -type f-ipath yosemite tif -printo . This segment searches your Home directory - for files -type f whose pathnames -ipath meaning capitalization doesn t matter contain the word Yosemite and end in tif. Remember the asterisks here are wildcard characters which stand

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.