<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://old.andunix.net/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://old.andunix.net/feed.php">
        <title>andunix.net</title>
        <description></description>
        <link>https://old.andunix.net/</link>
        <image rdf:resource="https://old.andunix.net/_media/favicon.ico" />
       <dc:date>2026-06-03T23:24:06+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://old.andunix.net/info/script/dyndns_updates_without_client"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/script/variables"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/script/exiftool"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/script/compare_directories"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://old.andunix.net/_media/favicon.ico">
        <title>andunix.net</title>
        <link>https://old.andunix.net/</link>
        <url>https://old.andunix.net/_media/favicon.ico</url>
    </image>
    <item rdf:about="https://old.andunix.net/info/script/dyndns_updates_without_client">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>DynDNS Updates without a Client</title>
        <link>https://old.andunix.net/info/script/dyndns_updates_without_client</link>
        <description>DynDNS Updates without a Client

My new hosting provide Strato offers DynDNS.
I was searching for a DynDNS client for my OpenSolaris Home Server, but a small bash script does the job as good as any other client.


#! /bin/bash
 
. ${HOME}/.dyndns.cfg
DOMAINS=$(cat ${HOME}/.dyndns.domains)
 
echo &quot;$(date '+%Y-%m-%d %H:%M') $(basename $0)&quot;
for domain in ${DOMAINS}; do
        echo -n &quot;  ${domain} - &quot;
        curl --silent --show-error --insecure --user ${LOGIN} &quot;${UPDATE_URL}?hostname=${domain}&quot;
d…</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/script/variables">
        <dc:format>text/html</dc:format>
        <dc:date>2015-10-23T12:39:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Shell Script Variables</title>
        <link>https://old.andunix.net/info/script/variables</link>
        <description>Shell Script Variables

Last Character

Get the last character of $a:


${a: -1}


Remove Slash from the End of a Variable

Remove a trailing slash from $a:


a=${a%/}


scripting bash sysadmin variable</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/script/exiftool">
        <dc:format>text/html</dc:format>
        <dc:date>2016-09-26T19:25:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>exiftool</title>
        <link>https://old.andunix.net/info/script/exiftool</link>
        <description>exiftool

Rename Photos

Try it first with -testname:
exiftool -d %Y-%m-%d_%H%M%S%%-c.%%e &quot;-testname&lt;CreateDate&quot; *.jpg
Then rename the files:
exiftool -d %Y-%m-%d_%H%M%S%%-c.%%e &quot;-filename&lt;CreateDate&quot; *.jpg
Correct the Date of Photos

To shift the photos 43 days, 14 hours and 55 minutes to the future:</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/script/compare_directories">
        <dc:format>text/html</dc:format>
        <dc:date>2018-09-19T12:34:39+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Compare directories</title>
        <link>https://old.andunix.net/info/script/compare_directories</link>
        <description>Compare directories

For each of the directories, generate a digest file:


find DIR -type f -exec shasum {} + | LC_ALL=C sort -d -k 2 &gt; shasums.txt


It's important to use LC_ALL=C and the option -d of sort, to get compareable results on different machines.</description>
    </item>
</rdf:RDF>
