<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/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://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com bash:how_to</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-18T17:33:33+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/bash/how_to/run_command?rev=1708041844&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/bash/how_to/string_substitutions?rev=1533315125&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/bash/how_to/tests?rev=1533268704&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/bash/how_to/run_command?rev=1708041844&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:04+02:00</dc:date>
        <title>bash: &quot;How To&quot; ... running commands</title>
        <link>https://code-reference.com/bash/how_to/run_command?rev=1708041844&amp;do=diff</link>
        <description>bash: &quot;How To&quot; ... running commands
operationwhatcodeexecutionresult of command executionRSLT=$?being rootif ($(id -u) -eq 0))execute command in variable “CMD” 
e.g. to programatically run same command  
 either on localhost or via added ssh prefixCMD=“command parameter ...”  
eval $CMD
work in progress</description>
    </item>
    <item rdf:about="https://code-reference.com/bash/how_to/string_substitutions?rev=1533315125&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-08-03T18:52:05+02:00</dc:date>
        <title>bash: &quot;How To&quot; ... utilize string substitutions</title>
        <link>https://code-reference.com/bash/how_to/string_substitutions?rev=1533315125&amp;do=diff</link>
        <description>bash: &quot;How To&quot; ... utilize string substitutions
  string parameter substitution  operationwhatcodeexample using:
export TST='abcabcaa'result from
(abcabcaa)removefirst occurrence of substring 'xyz' in stringSTR=${STR/'xyz'}echo ${TST/'bc'}aabcaa
 (abcabcaa)substring 'xyz' everywhere in stringSTR=${STR//'xyz'}echo ${TST//'bc'}aaaa
 (abcabcaa)substring 'xyz' at very beginning of string (prefix)STR=${STR#'xyz'}echo ${TST#'abca'}bcaa
 (abcabcaa)substring 'xyz' at very end of string (suffix)STR=${STR…</description>
    </item>
    <item rdf:about="https://code-reference.com/bash/how_to/tests?rev=1533268704&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-08-03T05:58:24+02:00</dc:date>
        <title>bash: &quot;How To&quot; ... utilize tests</title>
        <link>https://code-reference.com/bash/how_to/tests?rev=1533268704&amp;do=diff</link>
        <description>bash: &quot;How To&quot; ... utilize tests
operationwhatcodestringvariable equal to “xyz“if [ $STR == “xyz” ]variable unequal to “xyz“if [ $STR != “xyz” ]variable contains substring “xyz“if [[ $STR =~ “xyz” ]]variable is in list “abc” or “def” (or ...)if [[ $STR =~ ^(“abc”|“def”)$ ]]integervariable equal to nif [ $STR -eq n ]file“node” exists 
 (whatever type i.e. file, folder, ...)if [ -e “node” ]regular “filename” existsif [ -f “filename” ]create unique temporary filetouch /tmp/$$.tmpfind file “filename…</description>
    </item>
</rdf:RDF>
