<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.swganh.org/index.php?action=history&amp;feed=atom&amp;title=User%3AStarko%2FI_Hate_Linux</id>
		<title>User:Starko/I Hate Linux - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.swganh.org/index.php?action=history&amp;feed=atom&amp;title=User%3AStarko%2FI_Hate_Linux"/>
		<link rel="alternate" type="text/html" href="http://wiki.swganh.org/index.php?title=User:Starko/I_Hate_Linux&amp;action=history"/>
		<updated>2026-06-03T20:14:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.4</generator>

	<entry>
		<id>http://wiki.swganh.org/index.php?title=User:Starko/I_Hate_Linux&amp;diff=18087&amp;oldid=prev</id>
		<title>Starko: POINTLESS WASTE OF TIME!</title>
		<link rel="alternate" type="text/html" href="http://wiki.swganh.org/index.php?title=User:Starko/I_Hate_Linux&amp;diff=18087&amp;oldid=prev"/>
				<updated>2007-10-31T11:01:30Z</updated>
		
		<summary type="html">&lt;p&gt;POINTLESS WASTE OF TIME!&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;blockquote&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
#Error message&lt;br /&gt;
error() {&lt;br /&gt;
	echo $1;&lt;br /&gt;
	exit&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function fileCheck() {&lt;br /&gt;
if [ -d  $1 ]&lt;br /&gt;
then continue #to run script&lt;br /&gt;
 #Nothing needed as true by default&lt;br /&gt;
else&lt;br /&gt;
   error &amp;quot;The directory does not exist&amp;quot;; #Error code for no directory&lt;br /&gt;
fi&lt;br /&gt;
if [ -f $2 ]&lt;br /&gt;
then continue&lt;br /&gt;
#Nothing needed as true by default&lt;br /&gt;
else&lt;br /&gt;
    error &amp;quot;The 1st file does not exist&amp;quot;;#Error code for no file&lt;br /&gt;
fi&lt;br /&gt;
if [ -f $3 ]&lt;br /&gt;
then continue&lt;br /&gt;
#Nothing needed as true by default&lt;br /&gt;
else&lt;br /&gt;
    error &amp;quot;The 2nd file does not exist&amp;quot;;#Error code for no file&lt;br /&gt;
fi&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function sortFiles () {&lt;br /&gt;
for file in $1/*&lt;br /&gt;
do&lt;br /&gt;
     if [ -d $file ]&lt;br /&gt;
     then&lt;br /&gt;
	 echo  &amp;quot;&amp;lt;div class=dir&amp;gt;&amp;quot;;&lt;br /&gt;
	 basename $file&lt;br /&gt;
	 echo &amp;quot;&amp;lt;/div&amp;gt;&amp;quot;;&lt;br /&gt;
	 echo &amp;quot;&amp;lt;div class=indent&amp;gt;&amp;quot;;&lt;br /&gt;
	 sortFiles $file&lt;br /&gt;
	 echo &amp;quot;&amp;lt;/div&amp;gt;&amp;quot;;&lt;br /&gt;
     else&lt;br /&gt;
 	 echo  &amp;quot;&amp;lt;div class=file&amp;gt;&amp;quot;;&lt;br /&gt;
	 basename $file&lt;br /&gt;
	 echo &amp;quot;&amp;lt;/div&amp;gt;&amp;quot;;&lt;br /&gt;
     fi&lt;br /&gt;
done&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#Start of script&lt;br /&gt;
#Entering file parameters&lt;br /&gt;
if [ $# -ne 3 ]&lt;br /&gt;
then &lt;br /&gt;
	error &amp;quot;Please enter 3 arguments&amp;quot;;&lt;br /&gt;
fi&lt;br /&gt;
#Run fileCheck function to make sure that directories and files are correct&lt;br /&gt;
fileCheck&lt;br /&gt;
#Display header on page and import classes&lt;br /&gt;
cat $2&lt;br /&gt;
#Run sortFiles, remove directory imformation&lt;br /&gt;
sortFiles $1&lt;br /&gt;
#Show footer&lt;br /&gt;
cat $3&lt;br /&gt;
exit;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
the most pointless script i have ever had to write... &amp;gt;_&amp;lt;&lt;/div&gt;</summary>
		<author><name>Starko</name></author>	</entry>

	</feed>