<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bash on Michael’s Domain</title><link>https://jeltsch.org/en/tags/bash/</link><description>Recent content in Bash on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/bash/index.xml" rel="self" type="application/rss+xml"/><item><title>Changing environment variables (env, csh, bash)</title><link>https://jeltsch.org/en/changing_environment_variables_env_csh_bash/</link><pubDate>Fri, 25 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/changing_environment_variables_env_csh_bash/</guid><description>&lt;p&gt;I just install BackupPC. The perl install script complains that my environment variable LANG is set to en_US.UTF-8 and that it should be en_US. This setting is specificed in RedHat 9 Linux in the file /etc/sysconfig/i18n. To check what is the current value of the LANG variable type echo $LANG. To change or set the variable to &lt;em&gt;en_US&lt;/em&gt; type &lt;code&gt;LANG=en_US&lt;/code&gt; To show all environment variables, just enter&lt;code&gt;env&lt;/code&gt;at the command line.If you want to set an environment variable, you need to know what shell you are using. Many instructions still assume that you are using csh, but I guess it&amp;rsquo;s maybe only 1% of Linux users that use it. E.g. in the bash shell use the following command to set the environment variable DESTDIR to /usr/local&lt;code&gt;export DESTDIR=/usr/local&lt;/code&gt;while in csh type&lt;code&gt;DESTDIR = /usr/local&lt;/code&gt;&lt;/p&gt;</description></item><item><title>A good introduction to shell scripting</title><link>https://jeltsch.org/en/a_good_introduction_to_shell_scripting/</link><pubDate>Wed, 23 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/a_good_introduction_to_shell_scripting/</guid><description>&lt;p&gt;
 &lt;a href="http://www.freeos.com/guides/lsst" target="_blank" rel="noopener noreferrer nofollow"&gt;http://www.freeos.com/guides/lsst&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
&lt;/p&gt;</description></item><item><title>Shell script to downsample podcasts</title><link>https://jeltsch.org/en/shell_script_to_downsample_podcasts/</link><pubDate>Sat, 23 Dec 2006 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/shell_script_to_downsample_podcasts/</guid><description>&lt;p&gt;I have a very basic mp3 player with only 128 MB memory. I mostly listen to podcasts which are automatically downloaded by Amarok into the folder ~/.kde/share/apps/amarok/podcasts/data. In order to fit many of them to the limited memory and to have them available from anywhere, I have been writing a script that automatically downsamples them as they arrive and puts them online to my web server. The script is executed hourly by the crontab. The two relevant files look like this:&lt;/p&gt;</description></item></channel></rss>