|
|
|
An alias that uses perl
Somebody else suggested that a drag-and-drop tool would be useful. Here's a quick AppleScript droplet that accepts files dropped onto it (ignoring directories) and then passes the absolute path of each file to a one-line perl script.
on open fileList
repeat with x in fileList
if folder of (info for x) is not true then
set y to POSIX path of x
do shell script ("perl -pi -e \"tr/\\015/\\12/\" " & y)
end if
end repeat
end open
An alias that uses perl
can I use Logan's "alias mac2unix="perl -p0015l0012e '' -i $*"" with this script
An alias that uses perl
You might be missing a space between the '-i' and the path to the file. |
SearchFrom our Sponsor...Latest 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 © 2013 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.14 seconds |
|