<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?action=history&amp;feed=atom&amp;title=Recommended_bash_aliases</id>
	<title>Recommended bash aliases - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?action=history&amp;feed=atom&amp;title=Recommended_bash_aliases"/>
	<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Recommended_bash_aliases&amp;action=history"/>
	<updated>2026-06-04T10:11:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Recommended_bash_aliases&amp;diff=1293&amp;oldid=prev</id>
		<title>Adk44: Created page with &quot;~wales/.bashalias  Copying ~wales/.inputrc to your home directory will also reduce your typing. It sets up ESC then . as the last item on the previous line and ESC then , and...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wikis.ch.cam.ac.uk/ro-walesdocs/wiki/index.php?title=Recommended_bash_aliases&amp;diff=1293&amp;oldid=prev"/>
		<updated>2019-05-13T12:17:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;~wales/.bashalias  Copying ~wales/.inputrc to your home directory will also reduce your typing. It sets up ESC then . as the last item on the previous line and ESC then , and...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;~wales/.bashalias&lt;br /&gt;
&lt;br /&gt;
Copying ~wales/.inputrc to your home directory will also reduce your typing. It sets up ESC then . as the last item on the previous line and ESC then , and backward search in history matching the start of what you have already typed.&lt;br /&gt;
&lt;br /&gt;
== Function to remove filename extensions ==&lt;br /&gt;
Place&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# rm filename extension&lt;br /&gt;
function rmext() {&lt;br /&gt;
 find . -mindepth 1 -maxdepth 1 -type f | grep $1 |\&lt;br /&gt;
 sed &amp;#039;s/\(.*\)\..*/\1/&amp;#039; | xargs -I {} mv {}.$1 {};&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
in ~/.bash_aliases or ~/.bashrc then&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Usage&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ rmext &amp;lt;extension&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Example&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ls -1&lt;br /&gt;
first.file.test&lt;br /&gt;
second.file.test&lt;br /&gt;
important.file&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ rmext test&lt;br /&gt;
$ ls -1&lt;br /&gt;
first.file&lt;br /&gt;
second.file&lt;br /&gt;
important.file&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
What about using the &amp;#039;&amp;#039;rename&amp;#039;&amp;#039; command?&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ls&lt;br /&gt;
first.file.test  important.file  second.file.test&lt;br /&gt;
$ rename &amp;quot;.test&amp;quot; &amp;quot;&amp;quot; *.test&lt;br /&gt;
$ ls&lt;br /&gt;
first.file  important.file  second.file&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
(I&amp;#039;ll note that different implementations of rename exist and the usage varies accordingly: check the manpage!)&lt;br /&gt;
&lt;br /&gt;
== xpdf ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# fit width and set geometry&lt;br /&gt;
alias xpdf=&amp;quot;xpdf -z width -geometry 1000x1000&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Adk44</name></author>
	</entry>
</feed>