document.write("<div class=\"pastie\">\n");
document.write("  <link href=\"http://pastie.org/stylesheets/embed.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  <link href=\"http://pastie.org/stylesheets/clean.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  \n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("	\n");
document.write("	<div class=\"allcode wrap\">\n");
document.write("	<pre class=\"textmate-source\"><pre class=\"sunburst\"><span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_shell\'>#!/bin/bash                                                                                                                                                    <\/span>\n");
document.write("\n");
document.write("find <span class=\'variable variable_other variable_other_positional variable_other_positional_shell\'>$1<\/span> <span class=\'keyword keyword_operator keyword_operator_pipe keyword_operator_pipe_shell\'>|<\/span> <span class=\'keyword keyword_control keyword_control_shell\'>while<\/span> read file <span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_shell\'>#deals with spaces, linebreaks recursively starting in the $1 directory and dumps them to $file                                      <\/span>\n");
document.write("\n");
document.write("<span class=\'keyword keyword_control keyword_control_shell\'>do<\/span>\n");
document.write("  echo <span class=\'string string_quoted string_quoted_double string_quoted_double_shell\'>&quot;<span class=\'variable variable_other variable_other_normal variable_other_normal_shell\'>$file<\/span>&quot;<\/span> <span class=\'string string_quoted string_quoted_double string_quoted_double_shell\'>&quot;<span class=\'string string_interpolated string_interpolated_dollar string_interpolated_dollar_shell\'>$(echo <span class=\'variable variable_other variable_other_bracket variable_other_bracket_shell\'>${file// /_}<\/span> <span class=\'keyword keyword_operator keyword_operator_pipe keyword_operator_pipe_shell\'>|<\/span> tr <span class=\'string string_quoted string_quoted_single string_quoted_single_shell\'>\'[A-Z]\'<\/span> <span class=\'string string_quoted string_quoted_single string_quoted_single_shell\'>\'[a-z]\'<\/span>)<\/span>&quot;<\/span> <span class=\'comment comment_line comment_line_number-sign comment_line_number-sign_shell\'>#Echos old name, new name.  Replaces uppercase with lower case, spaces with underlines              <\/span>\n");
document.write("<span class=\'keyword keyword_control keyword_control_shell\'>done<\/span>\n");
document.write("<\/pre><\/pre>\n");
document.write("	\n");
document.write("	<\/div>\n");
document.write("\n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("  <div class=\"credit\">\n");
document.write("    <div class=\"buttons\">\n");
document.write("      <a href=\"http://pastie.org/pastes/427087.txt\">\n");
document.write("      <img src=\"http://pastie.org/images/view.png\" height=\"20\" width=\"67\" /><\/a>\n");
document.write("    <\/div>\n");
document.write("  \n");
document.write("    <a href=\"http://pastie.org/427087\">Pastie #427087<\/a> linked directly from <a href=\"http://pastie.org/\">Pastie<\/a>.\n");
document.write("  <\/div><\/div>");

