Wednesday, October 26, 2011

password protect a zip file on the mac

From the command line: zip -re foo.zip file1.txt file2.txt

you'll be prompted for a password

Saturday, October 1, 2011

iconv - for converting file formats

TextEdit on the mac doesn't do such a good job converting language files from the PC. I've found the following command line command works better:

iconv -f ISO-8859-1 -t UTF-16 [input file] > outputfile