<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux / UNIX: Print Current Working Directory with pwd command</title> <atom:link href="http://www.cyberciti.biz/faq/howto-display-working-directory-name/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/howto-display-working-directory-name/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/howto-display-working-directory-name/#comment-60025</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Wed, 15 Jun 2011 21:55:15 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-display-working-directory-name/#comment-60025</guid> <description>&lt;pre&gt;#!/bin/bash
#....
_pwd=&quot;$(pwd)&quot;
if [ &quot;$_pwd&quot; == &quot;boo&quot; ]
then
echo &quot;Current pwd is boo, starting backup...&quot;
else
echo &quot;cd to boo and try again.&quot;
fi
&lt;/pre&gt;</description> <content:encoded><![CDATA[<pre>#!/bin/bash
#....
_pwd="$(pwd)"
if [ "$_pwd" == "boo" ]
then
      echo "Current pwd is boo, starting backup..."
else
      echo "cd to boo and try again."
fi
</pre>]]></content:encoded> </item> <item><title>By: bigt</title><link>http://www.cyberciti.biz/faq/howto-display-working-directory-name/#comment-60024</link> <dc:creator>bigt</dc:creator> <pubDate>Wed, 15 Jun 2011 20:04:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-display-working-directory-name/#comment-60024</guid> <description>I ran across an article that showed how to use pwd in an if statement, but i can not find that article. can you poin me to some artcle that might explain this.
thanks</description> <content:encoded><![CDATA[<p>I ran across an article that showed how to use pwd in an if statement, but i can not find that article. can you poin me to some artcle that might explain this.</p><p>thanks</p> ]]></content:encoded> </item> </channel> </rss>
