421 lines
5.5 KiB
HTML
421 lines
5.5 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Miscellaneous</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="GNU/Linux Command-Line Tools Summary"
|
|
HREF="book1.htm"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Scheduling Commands to run in the background"
|
|
HREF="c10866.htm"><LINK
|
|
REL="NEXT"
|
|
TITLE="Mini-Guides"
|
|
HREF="c11412.htm"></HEAD
|
|
><BODY
|
|
CLASS="CHAPTER"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>GNU/Linux Command-Line Tools Summary</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="c10866.htm"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
></TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="c11412.htm"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="CHAPTER"
|
|
><H1
|
|
><A
|
|
NAME="MISCELLANEOUS"
|
|
></A
|
|
>Chapter 19. Miscellaneous</H1
|
|
><P
|
|
>The miscellaneous <A
|
|
NAME="AEN11273"
|
|
></A
|
|
>chapter contains commands that don't really fit into the other sections <A
|
|
NAME="AEN11275"
|
|
></A
|
|
>of this guide.</P
|
|
><P
|
|
></P
|
|
><DIV
|
|
CLASS="VARIABLELIST"
|
|
><DL
|
|
><DT
|
|
>renaming extensions</DT
|
|
><DD
|
|
><P
|
|
><A
|
|
NAME="AEN11282"
|
|
></A
|
|
>To rename <A
|
|
NAME="AEN11284"
|
|
></A
|
|
>all of the files in the current <A
|
|
NAME="AEN11286"
|
|
></A
|
|
>directory<A
|
|
NAME="AEN11288"
|
|
></A
|
|
> with a '.htm' extension <A
|
|
NAME="AEN11290"
|
|
></A
|
|
>to '.html', type:</P
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
>$ chcase -x 's/htm/html/' '*.htm'<A
|
|
NAME="AEN11293"
|
|
></A
|
|
></PRE
|
|
><P
|
|
>You can get a copy <A
|
|
NAME="AEN11296"
|
|
></A
|
|
>of <SPAN
|
|
CLASS="emphasis"
|
|
><I
|
|
CLASS="EMPHASIS"
|
|
>the chcase <A
|
|
NAME="AEN11299"
|
|
></A
|
|
></I
|
|
></SPAN
|
|
> perl <A
|
|
NAME="AEN11301"
|
|
></A
|
|
>script<SPAN
|
|
CLASS="emphasis"
|
|
><I
|
|
CLASS="EMPHASIS"
|
|
> <A
|
|
HREF="http://www.blemished.net/chcase.html"
|
|
TARGET="_top"
|
|
>here.</A
|
|
></I
|
|
></SPAN
|
|
></P
|
|
><P
|
|
>For more <A
|
|
NAME="AEN11306"
|
|
></A
|
|
>complex <A
|
|
NAME="AEN11308"
|
|
></A
|
|
>renaming <A
|
|
NAME="AEN11310"
|
|
></A
|
|
>you should read <A
|
|
HREF="x4055.htm"
|
|
>the Section called <I
|
|
>Mass Rename/copy/link Tools</I
|
|
> in Chapter 7</A
|
|
></P
|
|
></DD
|
|
><DT
|
|
>rel<A
|
|
NAME="AEN11315"
|
|
HREF="#FTN.AEN11315"
|
|
><SPAN
|
|
CLASS="footnote"
|
|
>[1]</SPAN
|
|
></A
|
|
></DT
|
|
><DD
|
|
><P
|
|
>Use rel <A
|
|
NAME="AEN11321"
|
|
></A
|
|
>to analyze <A
|
|
NAME="AEN11323"
|
|
></A
|
|
>text files for relevance <A
|
|
NAME="AEN11325"
|
|
></A
|
|
>to a given set of keywords.<A
|
|
NAME="AEN11327"
|
|
></A
|
|
> It outputs <A
|
|
NAME="AEN11329"
|
|
></A
|
|
>the names of those files that are relevant <A
|
|
NAME="AEN11331"
|
|
></A
|
|
>to the given keywords, ranked <A
|
|
NAME="AEN11333"
|
|
></A
|
|
>in order <A
|
|
NAME="AEN11335"
|
|
></A
|
|
>of relevance;<A
|
|
NAME="AEN11337"
|
|
></A
|
|
> if a file does not meet the criteria,<A
|
|
NAME="AEN11339"
|
|
></A
|
|
> it is not outputted in the relevance <A
|
|
NAME="AEN11341"
|
|
></A
|
|
>listing.</P
|
|
></DD
|
|
><DT
|
|
>units man page</DT
|
|
><DD
|
|
><P
|
|
><A
|
|
NAME="AEN11347"
|
|
></A
|
|
>There is a man page, part of the <SPAN
|
|
CLASS="PRODUCTNAME"
|
|
>Linux</SPAN
|
|
> Programmers <A
|
|
NAME="AEN11350"
|
|
></A
|
|
>Manual called “units”. It displays various information <A
|
|
NAME="AEN11352"
|
|
></A
|
|
>on the various scientific <A
|
|
NAME="AEN11354"
|
|
></A
|
|
>measurements<A
|
|
NAME="AEN11356"
|
|
></A
|
|
> (such as mega,<A
|
|
NAME="AEN11358"
|
|
></A
|
|
> giga <A
|
|
NAME="AEN11360"
|
|
></A
|
|
>et cetera). This manual <A
|
|
NAME="AEN11362"
|
|
></A
|
|
>page <A
|
|
NAME="AEN11364"
|
|
></A
|
|
>also has a short discussion about the argument <A
|
|
NAME="AEN11366"
|
|
></A
|
|
>over which<A
|
|
NAME="AEN11368"
|
|
></A
|
|
> standard <A
|
|
NAME="AEN11370"
|
|
></A
|
|
>should be used to measure <A
|
|
NAME="AEN11372"
|
|
></A
|
|
>data (ie. the kibibyte <A
|
|
NAME="AEN11374"
|
|
></A
|
|
>vs kilobyte). </P
|
|
><P
|
|
>To access <A
|
|
NAME="AEN11377"
|
|
></A
|
|
>this man page type:</P
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
>man 7 units</PRE
|
|
></DD
|
|
><DT
|
|
>fortune</DT
|
|
><DD
|
|
><P
|
|
><A
|
|
NAME="AEN11384"
|
|
></A
|
|
><SPAN
|
|
CLASS="emphasis"
|
|
><I
|
|
CLASS="EMPHASIS"
|
|
>fortune</I
|
|
></SPAN
|
|
> is a tool which will print <A
|
|
NAME="AEN11387"
|
|
></A
|
|
>a random,<A
|
|
NAME="AEN11389"
|
|
></A
|
|
> hopefully interesting quote <A
|
|
NAME="AEN11391"
|
|
></A
|
|
>or entertaining short piece <A
|
|
NAME="AEN11393"
|
|
></A
|
|
>of writing.<A
|
|
NAME="AEN11395"
|
|
></A
|
|
> There are options <A
|
|
NAME="AEN11397"
|
|
></A
|
|
>to customise <A
|
|
NAME="AEN11399"
|
|
></A
|
|
>which area the epigrams <A
|
|
NAME="AEN11401"
|
|
></A
|
|
>should come from. Just type <SPAN
|
|
CLASS="emphasis"
|
|
><I
|
|
CLASS="EMPHASIS"
|
|
>fortune</I
|
|
></SPAN
|
|
> to get a random <A
|
|
NAME="AEN11404"
|
|
></A
|
|
>epigram <A
|
|
NAME="AEN11406"
|
|
></A
|
|
>from any section.<A
|
|
NAME="AEN11408"
|
|
></A
|
|
> </P
|
|
><P
|
|
>Simply type:</P
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
>fortune</PRE
|
|
></DD
|
|
></DL
|
|
></DIV
|
|
></DIV
|
|
><H3
|
|
CLASS="FOOTNOTES"
|
|
>Notes</H3
|
|
><TABLE
|
|
BORDER="0"
|
|
CLASS="FOOTNOTES"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
ALIGN="LEFT"
|
|
VALIGN="TOP"
|
|
WIDTH="5%"
|
|
><A
|
|
NAME="FTN.AEN11315"
|
|
HREF="c11270.htm#AEN11315"
|
|
><SPAN
|
|
CLASS="footnote"
|
|
>[1]</SPAN
|
|
></A
|
|
></TD
|
|
><TD
|
|
ALIGN="LEFT"
|
|
VALIGN="TOP"
|
|
WIDTH="95%"
|
|
><P
|
|
>This information information comes from the <SPAN
|
|
CLASS="PRODUCTNAME"
|
|
>Linux</SPAN
|
|
> Cookbook (without editing). See [3] in the <A
|
|
HREF="b12722.htm"
|
|
><I
|
|
>Bibliography</I
|
|
></A
|
|
> for further information.</P
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="c10866.htm"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="book1.htm"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="c11412.htm"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Scheduling Commands to run in the background</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Mini-Guides</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |