right, have 200+ plain text files need same fix: change line endings dos/windows format. there simple way terminal and/or applescript? they're not in same folder, writing shell script traverse folder structure shouldn't hard. looking commands use apply fix each text file. if better done applescripting of textwrangler, it. i'm fine that.
fwiw cheap , sleazy way around zip files , use info-zip unzip's -a option treat files ascii, won't work dos endings on unix system.
edit: wikipedia article may come in handy. http://en.wikipedia.org/wiki/unix2dos. if files mixed bag already, i'd use zip approach mentioned above normalize files unix endings before translating. otherwise run risk of getting funky line endings \r\r\n on occasions.
b
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment