Showing posts with label mac. Show all posts
Showing posts with label mac. Show all posts

Friday, 27 March 2015

Mac: How to ignore files with errors when copying

When copying files on a Mac using Finder, the copy operation will be interrupted if a file with errors is detected, which makes sense in many cases. However, in some cases you just want to copy "what you can get", and ignore invalid files. This can be done using the "cp" command in terminal, as described here.

Use the following syntax in terminal:

cp -Rp SourceFolder DestinationFolder

The -R flag will ensure that the copy operation is continued even if there are errors. The destination folder does not have to exist, you can specify a new folder name and it will be created.


Friday, 16 April 2010

Installing Octave on Mac OS X

GNU Octave is a freeware alternative to Matlab which I have been curious about for some time now. I decided to try it out on my iMac, and downloaded it from Octave-Forge. At its core, Octave is a command-line program, but it uses GNUPlot for plotting figures. However, having installed both, I found that entering commands like

figure

or

plot(x,y)


had no effect at all. It seems that in order to work on Mac OS X, these two programs shuld be "glued together" by a third program called AquaTerm, which can be downloaded here. Having installed this, I am now able to make plots like the one below. Nice, eh? :-)