<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/bash/tags/directory</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 19 Jun 2013 22:55:26 GMT</pubDate>
<item>
<title>(Bash) Download Directory with scp - zackn9ne</title>
<link>http://snipplr.com/view/64362/download-directory-with-scp/</link>
<description><![CDATA[ <p>download directory to localhost home folder new-dir-name</p> ]]></description>
<pubDate>Thu, 05 Apr 2012 09:25:35 GMT</pubDate>
<guid>http://snipplr.com/view/64362/download-directory-with-scp/</guid>
</item>
<item>
<title>(Bash) File &amp;amp; Directory Remove Script - mkornatz</title>
<link>http://snipplr.com/view/57640/file--directory-remove-script/</link>
<description><![CDATA[ <p>Modified a little bit to make it easier to change the location of the recycle bin.</p> ]]></description>
<pubDate>Fri, 05 Aug 2011 02:31:02 GMT</pubDate>
<guid>http://snipplr.com/view/57640/file--directory-remove-script/</guid>
</item>
<item>
<title>(Bash) find the largest directories in a Unix shell - pyroblue</title>
<link>http://snipplr.com/view/53809/find-the-largest-directories-in-a-unix-shell/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 20 May 2011 00:18:51 GMT</pubDate>
<guid>http://snipplr.com/view/53809/find-the-largest-directories-in-a-unix-shell/</guid>
</item>
<item>
<title>(Bash) Backup Directory and Content - tribal</title>
<link>http://snipplr.com/view/51726/backup-directory-and-content/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 07 Apr 2011 19:11:35 GMT</pubDate>
<guid>http://snipplr.com/view/51726/backup-directory-and-content/</guid>
</item>
<item>
<title>(Bash) add file to all directories recursively - dan_hoerr</title>
<link>http://snipplr.com/view/50073/add-file-to-all-directories-recursively/</link>
<description><![CDATA[ <p>currently formatted for use on mediatemple server.  replace file path with absolute path of resources.</p> ]]></description>
<pubDate>Sat, 05 Mar 2011 09:10:54 GMT</pubDate>
<guid>http://snipplr.com/view/50073/add-file-to-all-directories-recursively/</guid>
</item>
<item>
<title>(Bash) List of directories (Unix) without the current directory shortcut and just the names - jturmel</title>
<link>http://snipplr.com/view/47701/list-of-directories-unix-without-the-current-directory-shortcut-and-just-the-names/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 22 Jan 2011 09:04:12 GMT</pubDate>
<guid>http://snipplr.com/view/47701/list-of-directories-unix-without-the-current-directory-shortcut-and-just-the-names/</guid>
</item>
<item>
<title>(Bash) Chmod directories recursively to 755 - jfine</title>
<link>http://snipplr.com/view/42215/chmod-directories-recursively-to-755/</link>
<description><![CDATA[ <p>-print0 and -0 are used to allow for spaces and other wacky chars in directory names</p> ]]></description>
<pubDate>Thu, 14 Oct 2010 02:01:51 GMT</pubDate>
<guid>http://snipplr.com/view/42215/chmod-directories-recursively-to-755/</guid>
</item>
<item>
<title>(Bash) strip text from the middle of all filenames in a directory - powerthru</title>
<link>http://snipplr.com/view/42038/strip-text-from-the-middle-of-all-filenames-in-a-directory/</link>
<description><![CDATA[ <p>Expects all files to be in the current directory; does not recurse into subdirectories. Replace "TEXTTOREMOVE" with the text you wish to remove from the filename. Replace *.csv with a search term appropriate for your situation.</p> ]]></description>
<pubDate>Mon, 11 Oct 2010 11:23:33 GMT</pubDate>
<guid>http://snipplr.com/view/42038/strip-text-from-the-middle-of-all-filenames-in-a-directory/</guid>
</item>
<item>
<title>(Bash) strip leading text from all filenames in a directory - powerthru</title>
<link>http://snipplr.com/view/42037/strip-leading-text-from-all-filenames-in-a-directory/</link>
<description><![CDATA[ <p>Execute on the command line. Assumes all files are in the current directory; does not recurse into subdirectories. Replace "*.html" with correct search term for your situation; replace "FS-" with the leading text you wish to remove. This example removes the text FS-  from all files which end in .html</p> ]]></description>
<pubDate>Mon, 11 Oct 2010 11:11:15 GMT</pubDate>
<guid>http://snipplr.com/view/42037/strip-leading-text-from-all-filenames-in-a-directory/</guid>
</item>
<item>
<title>(Bash) linux directory size - pflangan</title>
<link>http://snipplr.com/view/39310/linux-directory-size/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 19 Aug 2010 20:42:22 GMT</pubDate>
<guid>http://snipplr.com/view/39310/linux-directory-size/</guid>
</item>
<item>
<title>(Bash) Directory Monitor - juln</title>
<link>http://snipplr.com/view/36677/directory-monitor/</link>
<description><![CDATA[ <p>This is just a little snippy I use to watch a directory to see which files are being actively written to. There's probably better ways to do this, but I'm fond of this snippy.</p> ]]></description>
<pubDate>Mon, 05 Jul 2010 00:35:57 GMT</pubDate>
<guid>http://snipplr.com/view/36677/directory-monitor/</guid>
</item>
<item>
<title>(Bash) Bash (Command Line): Loop through directories in specified location, replacing directories in current directory (with backup) - karlhorky</title>
<link>http://snipplr.com/view/35126/bash-command-line-loop-through-directories-in-specified-location-replacing-directories-in-current-directory-with-backup/</link>
<description><![CDATA[ <p>This command line aims at moving directories from a target location to the present working directory (pwd), backing the pwd directories up as it encounters them.

The script works by:

1. Iterating through the contents of the target directory (using the unix ls command)

2. Checking whether the current object is a directory

3. Moving the pwd directory to a backup location using the unix mv command

4. Moving the target location's directory to the present working directory

5. Printing out the modified directory's name using the unix echo command</p> ]]></description>
<pubDate>Sun, 23 May 2010 15:24:10 GMT</pubDate>
<guid>http://snipplr.com/view/35126/bash-command-line-loop-through-directories-in-specified-location-replacing-directories-in-current-directory-with-backup/</guid>
</item>
<item>
<title>(Bash) Set SGID bit on directory and subdirectories - TEHEK</title>
<link>http://snipplr.com/view/31124/set-sgid-bit-on-directory-and-subdirectories/</link>
<description><![CDATA[ <p>Found it on wiki</p> ]]></description>
<pubDate>Thu, 08 Apr 2010 20:58:37 GMT</pubDate>
<guid>http://snipplr.com/view/31124/set-sgid-bit-on-directory-and-subdirectories/</guid>
</item>
<item>
<title>(Bash) mod_files.sh [PHP] - nkm</title>
<link>http://snipplr.com/view/27710/modfilessh-php/</link>
<description><![CDATA[ <p>here's a script, mod_files.sh, in ext/session for creating directory
tree with depth X for sessions.  As it stands, it's pretty poorly
documented and very basic.  I * got exceptionally bored and rewrote most
of it, the patch is attached.  It runs fine for me in linux (with sh
version 4.0).  I don't have any other *NIX systems to test it out on,
so I can't verify that it works in anything but linux, sorry.

* Eddie Drapkin </p> ]]></description>
<pubDate>Thu, 04 Feb 2010 17:56:26 GMT</pubDate>
<guid>http://snipplr.com/view/27710/modfilessh-php/</guid>
</item>
<item>
<title>(Bash) Creating links in different directories (Linux/UNIX) - deepsoul</title>
<link>http://snipplr.com/view/18350/creating-links-in-different-directories-linuxunix/</link>
<description><![CDATA[ <p>When using `ln` to create a link in a different directory, the semantics of creating hard and symbolic links differ.  That is because a hard link contains a direct reference to its target's data, while a symbolic link is just a string containing a (possibly relative) path.  You can get around this by using absoute paths, but then moving a subtree will break the symlink.

Just to recap, the other main differences between hard and symbolic links: Symbolic links can be left dangling when their target is removed; hard links cannot.  Symbolic links can point to files on other partitions or disks, while hard links cannot.</p> ]]></description>
<pubDate>Sat, 15 Aug 2009 16:35:51 GMT</pubDate>
<guid>http://snipplr.com/view/18350/creating-links-in-different-directories-linuxunix/</guid>
</item>
<item>
<title>(Bash) Force Clear Browser Cache - iloveitaly</title>
<link>http://snipplr.com/view/17445/force-clear-browser-cache/</link>
<description><![CDATA[ <p>Flash has a weird cache mechanism, this makes sure that the browser isn't caching any data.</p> ]]></description>
<pubDate>Fri, 24 Jul 2009 23:26:17 GMT</pubDate>
<guid>http://snipplr.com/view/17445/force-clear-browser-cache/</guid>
</item>
<item>
<title>(Bash) *nix - change user's home directory - stiobhart</title>
<link>http://snipplr.com/view/15642/nix--change-users-home-directory/</link>
<description><![CDATA[ <p>change user's home directory</p> ]]></description>
<pubDate>Sun, 07 Jun 2009 17:32:19 GMT</pubDate>
<guid>http://snipplr.com/view/15642/nix--change-users-home-directory/</guid>
</item>
<item>
<title>(Bash) Filtering the Find command - noah</title>
<link>http://snipplr.com/view/12070/filtering-the-find-command/</link>
<description><![CDATA[ <p>How to filter files and directories with the find command.

The command below finds files that end in "sass," but not the file named "constants.sass," and not the directory "landing_page," nor any of its contents.</p> ]]></description>
<pubDate>Tue, 10 Feb 2009 10:10:21 GMT</pubDate>
<guid>http://snipplr.com/view/12070/filtering-the-find-command/</guid>
</item>
<item>
<title>(Bash) Change CWD to File's Directory - iloveitaly</title>
<link>http://snipplr.com/view/10564/change-cwd-to-files-directory/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 18 Dec 2008 12:34:36 GMT</pubDate>
<guid>http://snipplr.com/view/10564/change-cwd-to-files-directory/</guid>
</item>
<item>
<title>(Bash) Count files and directories - priyanhere</title>
<link>http://snipplr.com/view/1692/count-files-and-directories/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 20 Nov 2006 06:43:30 GMT</pubDate>
<guid>http://snipplr.com/view/1692/count-files-and-directories/</guid>
</item>
</channel>
</rss>