help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

variable for directory in cd


From: Blitz
Subject: variable for directory in cd
Date: Tue, 9 Mar 2010 11:08:57 -0800 (PST)

I'm trying to use the UNIX command "cd" to jump in and out of directories
programmatically in Octave.  How do I use my variable in the cd command?

trying...

dirs = ls -d */
for j = 1:length(dirs(:,1)),
     cd dirs(j,:)   % line I'm having trouble with
     % do stuff
     cd ..
end

I'm running Octave 3.0.1 under Ubuntu

thanks!
-- 
View this message in context: 
http://old.nabble.com/variable-for-directory-in-cd-tp27840461p27840461.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]