Added entries to index
This commit is contained in:
parent
92297980f3
commit
5d19aabdaf
@ -26,7 +26,7 @@ The default resolution is 150 dpi. To change this, use the \texttt{-rx} flag to
|
||||
pdftoppm input.pdf output -png -rx 300 -ry 300
|
||||
\end{Verbatim}
|
||||
|
||||
Doubling the resolution along both axes will increase the file size by an approximate factor of four, and will also increase the amount of detail in the image.
|
||||
Doubling the resolution\index[concepts]{images!resolution} along both axes will increase the file size by an approximate factor of four, and will also increase the amount of detail in the image.
|
||||
|
||||
\ktcbox{When creating \LaTeX{} tutorials for the web, I will generally use the \texttt{standalone} class and then convert the resulting pdf to a png image for use with html.}
|
||||
|
||||
|
||||
@ -22,6 +22,12 @@ To change ``foo'' to ``bar'', use:
|
||||
mmv 'foo*' 'bar#1'
|
||||
\end{Verbatim}
|
||||
|
||||
To exchange ``foo'' in our list above for the file extension, we would use:
|
||||
|
||||
\begin{Verbatim}[frame=single, breaklines=true]
|
||||
mmv 'foo*.txt' 'txt#1.foo'
|
||||
\end{Verbatim}
|
||||
|
||||
The \texttt{mmv} command uses this command structure:
|
||||
|
||||
\vspace{3mm}
|
||||
@ -29,13 +35,7 @@ The \texttt{mmv} command uses this command structure:
|
||||
mmv [-m|x|r|c|o|a|l|s] [-h] [-d|p] [-g|t] [-v|n] [--] [from to]
|
||||
\end{Verbatim}
|
||||
|
||||
For a full discussion of those, see the ``man'' page. The key concept here is that wildcard characters in the ``from'' option get replaced with ``\#1'', ``\#2'' etc in the ``to'' option, in the order they are encountered. So it is possible to reorder elements of file names. For example, to exchange ``foo'' in our list above for the file extension, we would use:
|
||||
|
||||
\begin{Verbatim}[frame=single, breaklines=true]
|
||||
mmv 'foo*.txt' 'txt#1.foo'
|
||||
\end{Verbatim}
|
||||
|
||||
To reverse the order of the last three characters of the filenames, we would use:
|
||||
For a full discussion of those, see the ``man'' page. The key concept here is that wildcard characters in the ``from'' option get replaced with ``\#1'', ``\#2'' etc in the ``to'' option, in the order they are encountered. So it is possible to reorder elements of file names. To reverse the order of the last three characters of the filenames, we would use:
|
||||
|
||||
\begin{Verbatim}[frame=single, breaklines=true]
|
||||
mmv 'foo???.txt' 'foo#3#2#1.txt'
|
||||
@ -53,9 +53,9 @@ foor83.txt
|
||||
|
||||
\section{Obtain a List of Files and their Paths}\index[concepts]{files!list of with paths}
|
||||
|
||||
\lettrine{T}{he} \texttt{find} command has options to obtain this list. To obtain this list with the full path, use:
|
||||
\lettrine{T}{he} \texttt{find} command\index{find} has options to obtain this list. To obtain this list with the full path, use:
|
||||
|
||||
\input{bits/find_PWD}
|
||||
\input{bits/find_PWD}\index[concepts]{PWD}
|
||||
|
||||
To obtain this list with a relative path, use:\index[concepts]{path, relative}
|
||||
|
||||
@ -69,6 +69,6 @@ To find only certain types of files (in this case jpgs) and redirect this inform
|
||||
find . \( name "*.jpg" -o name "*.jpeg" \) > jpglist.txt
|
||||
\end{Verbatim}
|
||||
|
||||
Because this is bash, the parentheses are not a capture group (as in regex), but operators used to force precedence and need to be escaped, because parentheses are special to the shell. (Normally we would use quotation marks, but because we need to use quotation marks with the \texttt{name} test, we are using backslashes). Likewise, the \texttt{-o} is a Boolean ``or'', meaning that the second expression will not be evaluated if the first one is true. For more information, use \texttt{man find}.
|
||||
Because this is bash, the parentheses are not a capture group\index[concepts]{capture group} (as in regex\index[concepts]{regex}), but operators used to force precedence and need to be escaped, because parentheses are special to the shell. (Normally we would use quotation marks, but because we need to use quotation marks with the \texttt{name} test, we are using backslashes). Likewise, the \texttt{-o} is a Boolean ``or'', meaning that the second expression will not be evaluated if the first one is true. For more information, use \texttt{man find}.
|
||||
|
||||
\ktcbox{Sometimes you need a list of files with their filepaths, and these tools will do that. Unfortunately, Linux does not have a way to put the file first, so the way to do this is to redirect \texttt{stdout} to a \texttt{.csv} file and manipulate the output in a spreadsheet.}
|
||||
@ -98,6 +98,7 @@ To get even more information, including dependencies, we can use:
|
||||
\begin{Verbatim}[frame=single]
|
||||
apt show <package>
|
||||
\end{Verbatim}
|
||||
\index{apt!show}
|
||||
|
||||
Executing this command for Okular returns:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user