%% Get Parts of Dotfile Name for Linux
% Get the parts of a user .cshrc file name for a Linux® system.
% fileparts interprets the entire file name as an extension because it begins with a period.

[filepath,name,ext] = fileparts('/home/jsmith/.cshrc')

% Copyright 2012 The MathWorks, Inc.