<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Are you trying to do a string replacement on your path?&nbsp; As far as I
know, only the zsh implementation of cd supports a syntax like that.&nbsp;
(Which reminds me, I keep meaning to use zsh more -- it's so powerful
it's ridiculous.)<br>
<br>
David<br>
<br>
On 09/17/2010 05:44 PM, Narahari 'n' Savitha wrote:
<blockquote
 cite="mid:AANLkTi=Dh-GeUFrRygFXxZxWFJ9y_mdEQic96E55nyXd@mail.gmail.com"
 type="cite">Friends:<br>
  <br>
I remember using cd in the following way.<br>
  <br>
  <span style="font-family: courier new,monospace;">$pwd</span><br
 style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">/this/is/the/folder/that/all/are/in/now</span><br>
  <br>
The folder structure till the that is<br>
  <span style="font-family: courier new,monospace;">$ls
/this/is/the/folder/that/</span><br>
  <br>
  <span style="font-family: courier new,monospace;">all</span><br
 style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">males</span><br
 style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">females</span><br>
  <br>
I was able to do this<br>
  <br>
  <span style="font-family: courier new,monospace;">$cd all males</span><br
 style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">$pwd</span><br
 style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">/this/is/the/folder/that/males/are/in/now</span><br
 style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">$cd males females</span><br
 style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">/this/is/the/folder/that/females/are/in/now</span><br>
  <br>
I cant seem to find that command now.<br>
  <br>
Anyone knows how to do this or where to find this.<br>
(bash or ksh is fine too)<br>
  <br>
-Narahari<br>
  <br>
  <br>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
David Tomaschik, RHCE
Ubuntu Community Member
Moderator, LinuxQuestions.org
GPG: 0x6D428695
</pre>
</body>
</html>