<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.eanderalx.org/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.eanderalx.org/feed.php">
        <title>EanderAlx.org - bashscr</title>
        <description>Linux, Virtualization and whatever I find interesting ...</description>
        <link>https://www.eanderalx.org/</link>
        <image rdf:resource="https://www.eanderalx.org/_media/wiki/dokuwiki.svg" />
       <dc:date>2026-04-30T06:38:43+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.eanderalx.org/bashscr/calculate?rev=1364059492&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.eanderalx.org/bashscr/check_empty_var?rev=1364059550&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.eanderalx.org/bashscr/functions?rev=1364059361&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.eanderalx.org/bashscr/parameter?rev=1364910483&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.eanderalx.org/bashscr/start?rev=1364066472&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.eanderalx.org/_media/wiki/dokuwiki.svg">
        <title>EanderAlx.org</title>
        <link>https://www.eanderalx.org/</link>
        <url>https://www.eanderalx.org/_media/wiki/dokuwiki.svg</url>
    </image>
    <item rdf:about="https://www.eanderalx.org/bashscr/calculate?rev=1364059492&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-23T17:24:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Calculate in bash</title>
        <link>https://www.eanderalx.org/bashscr/calculate?rev=1364059492&amp;do=diff</link>
        <description>Calculate in bash

	*  If you want to calculate with an integer it&#039;s possible without using other programs.



	*  For example 34+23=57


COUNT1=&quot;34&quot;
COUNT2=&quot;23&quot;
echo $[$COUNT1 + $COUNT2]


	*  If you want to move the decimal point one digit to the left than you will have to use modulo.</description>
    </item>
    <item rdf:about="https://www.eanderalx.org/bashscr/check_empty_var?rev=1364059550&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-23T17:25:50+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Check for empty variables</title>
        <link>https://www.eanderalx.org/bashscr/check_empty_var?rev=1364059550&amp;do=diff</link>
        <description>Check for empty variables

	*  If you want to check for a empty bash variable you can do this like given here:




# if VAR is empty
if [ &quot;x$VAR&quot; == &quot;x&quot; ];then
...
fi


	*  When $VAR is empty the Statement in the if-clause is true</description>
    </item>
    <item rdf:about="https://www.eanderalx.org/bashscr/functions?rev=1364059361&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-23T17:22:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Bash - Functions</title>
        <link>https://www.eanderalx.org/bashscr/functions?rev=1364059361&amp;do=diff</link>
        <description>Bash - Functions

	*  How to use functions in bash



	*  Here an example: you can pass values returned by programms as parameter to check them.


#Functions======================================
function check() {
	FC=$1
	if [ $FC != &quot;0&quot; ];then
           echo -e &quot;--&gt; ERROR\n&quot;
	else
	   echo -e &quot;--&gt; OK\n&quot;
	fi
	}
#============================================</description>
    </item>
    <item rdf:about="https://www.eanderalx.org/bashscr/parameter?rev=1364910483&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-02T13:48:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Bash - Parameters</title>
        <link>https://www.eanderalx.org/bashscr/parameter?rev=1364910483&amp;do=diff</link>
        <description>Bash - Parameters

	*  The first parameter passed to the script is $1, the second $2 and so on
	*  If you want to to check more then one possibilities of parameter passed to the script then a case is useful




case &quot;$1&quot; in
  start)
        # start
        command 1
        command 2
        command 3
        ;;
  stop)
        # stop
        command 1
        command 2
        command 3
        ;;
  *)
        # anything other
        echo &quot;Use: {start|stop}&quot; &gt;&amp;2
        exit 1
        ;;
esac</description>
    </item>
    <item rdf:about="https://www.eanderalx.org/bashscr/start?rev=1364066472&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-23T19:21:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Bash-Scripting</title>
        <link>https://www.eanderalx.org/bashscr/start?rev=1364066472&amp;do=diff</link>
        <description>Bash-Scripting



Recent Posts</description>
    </item>
</rdf:RDF>
