<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://krischer.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="http://krischer.org/feed.php">
        <title>EDV-Krischer IT-Serice Wiki linux:shorties:bash</title>
        <description></description>
        <link>http://krischer.org/</link>
        <image rdf:resource="http://krischer.org/lib/images/favicon.ico" />
       <dc:date>2010-09-10T14:38:18+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://krischer.org/linux/shorties/bash/colors"/>
                <rdf:li rdf:resource="http://krischer.org/linux/shorties/bash/csv2latex"/>
                <rdf:li rdf:resource="http://krischer.org/linux/shorties/bash/desktop_notification"/>
                <rdf:li rdf:resource="http://krischer.org/linux/shorties/bash/sed_search_replace"/>
                <rdf:li rdf:resource="http://krischer.org/linux/shorties/bash/syslog_messages"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://krischer.org/lib/images/favicon.ico">
        <title>EDV-Krischer IT-Serice Wiki</title>
        <link>http://krischer.org/</link>
        <url>http://krischer.org/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://krischer.org/linux/shorties/bash/colors">
        <dc:format>text/html</dc:format>
        <dc:date>2009-02-19T09:57:15+02:00</dc:date>
        <title>Colors in Ansi-Shells</title>
        <link>http://krischer.org/linux/shorties/bash/colors</link>
        <description>Colors are produced bei simply echoing the following code before the colorized text. Works also in Console-Programs (Ansi C, Java, ...)

All colors build with the same sheme:


\033[X;Ym

While \033 indicates the Ansi-Code for „Color“, X = {0, 1, 4, 5} and Y = {30, ..., 37, 40, ... , 47} could be taking from following table:</description>
    </item>
    <item rdf:about="http://krischer.org/linux/shorties/bash/csv2latex">
        <dc:format>text/html</dc:format>
        <dc:date>2010-03-03T14:11:07+02:00</dc:date>
        <title>CSV2latex</title>
        <link>http://krischer.org/linux/shorties/bash/csv2latex</link>
        <description>Ever wanted to use OpenOffice calc sheets as a table in a latex document? Here’s the KDE4 variant of an older script from here

#!/bin/bash
# calc2latex: Clipboard format exchange KDE SC 4 version
# Manuel Krischer, March 2010
# (kde3 original http://www.molspaces.com/d_misc1.php)
# Pere Constans, Mar 6 2004 (uses csv2latex, by Benoit Rouits)
# http://dries.ulyssis.org/rpm/packages/csv2latex/info.html
# with help from
# http://milianw.de/code-snippets/access-klipper-clipboard-on-cli-under-kde4

…</description>
    </item>
    <item rdf:about="http://krischer.org/linux/shorties/bash/desktop_notification">
        <dc:format>text/html</dc:format>
        <dc:date>2009-11-17T01:04:29+02:00</dc:date>
        <title>Notify User on root scripts</title>
        <link>http://krischer.org/linux/shorties/bash/desktop_notification</link>
        <description>With kdialog and notify-send it is pretty easy to send yourself a message to your desktop eviroment via dbus.

It gets more complicated if you run a script as root and did not have the authority to use the users dbus by design.

The following function sends every user on a the machine a notification and can be used easily in your own scripts. Tested on openSUSE 11.1.</description>
    </item>
    <item rdf:about="http://krischer.org/linux/shorties/bash/sed_search_replace">
        <dc:format>text/html</dc:format>
        <dc:date>2009-02-19T09:55:11+02:00</dc:date>
        <title>SED Search&amp;Replace</title>
        <link>http://krischer.org/linux/shorties/bash/sed_search_replace</link>
        <description>sed 's/&lt;search&gt;/&lt;replace&gt;/g'

Usefull in piped lists</description>
    </item>
    <item rdf:about="http://krischer.org/linux/shorties/bash/syslog_messages">
        <dc:format>text/html</dc:format>
        <dc:date>2009-02-19T09:54:44+02:00</dc:date>
        <title>Nice logging to /var/log/messages</title>
        <link>http://krischer.org/linux/shorties/bash/syslog_messages</link>
        <description>Hints from Ralf

Script Header

dish the path from  the scriptname
progname=$(basename $0)
log () {
       echo -e $* | logger -t $progname
}

Use with:

plain text
log &quot;Some important stuff&quot;
running programs
log &quot;$(killall vpnc)&quot;
running programs which normally log to stderr</description>
    </item>
</rdf:RDF>
