Commit 3d30e34b authored by TheOuterLinux's avatar TheOuterLinux

...

parent 5117be1e
......@@ -85,6 +85,7 @@ random, srandom, initstate, setstate - random number generator
ranger - visual file manager
rar - archive files with compression
rarcrack - password cracker for rar archives
rename - renames multiple files
rfcdiff - compare RFCs or Internet Drafts or any other text files
rm - remove files or directories
rot13 - a cipher in which each letter is pushed forward by 13 places
......
RENAME(1p) User Contributed Perl Documentation RENAME(1p)
NAME
rename - renames multiple files
SYNOPSIS
rename [ -h|-m|-V ] [ -v ] [ -n ] [ -f ] [ -e|-E perlexpr]*|perlexpr [ files ]
DESCRIPTION
"rename" renames the filenames supplied according to the rule specified as the first
argument. The perlexpr argument is a Perl expression which is expected to modify the $_
string in Perl for at least some of the filenames specified. If a given filename is not
modified by the expression, it will not be renamed. If no filenames are given on the
command line, filenames will be read via standard input.
For example, to rename all files matching "*.bak" to strip the extension, you might say
rename 's/\e.bak$//' *.bak
To translate uppercase names to lower, you'd use
rename 'y/A-Z/a-z/' *
OPTIONS
-v, -verbose
Verbose: print names of files successfully renamed.
-n, -nono
No action: print names of files to be renamed, but don't rename.
-f, -force
Over write: allow existing files to be over-written.
-h, -help
Help: print SYNOPSIS and OPTIONS.
-m, -man
Manual: print manual page.
-V, -version
Version: show version number.
-e Expression: code to act on files name.
May be repeated to build up code (like "perl -e"). If no -e, the first argument
is used as code.
-E Statement: code to act on files name, as -e but terminated by ';'.
ENVIRONMENT
No environment variables are used.
AUTHOR
Larry Wall
SEE ALSO
mv(1), perl(1)
DIAGNOSTICS
If you give an invalid Perl expression you'll get a syntax error.
BUGS
The original "rename" did not check for the existence of target filenames, so had to be
used with care. I hope I've fixed that (Robin Barker).
perl v5.20.2 2015-06-04 RENAME(1p)
Usage:
rename [ -h|-m|-V ] [ -v ] [ -n ] [ -f ] [ -e|-E perlexpr]*|perlexpr
[ files ]
Options:
-v, -verbose
Verbose: print names of files successfully renamed.
-n, -nono
No action: print names of files to be renamed, but don't rename.
-f, -force
Over write: allow existing files to be over-written.
-h, -help
Help: print SYNOPSIS and OPTIONS.
-m, -man
Manual: print manual page.
-V, -version
Version: show version number.
-e Expression: code to act on files name.
May be repeated to build up code (like "perl -e"). If no -e, the
first argument is used as code.
-E Statement: code to act on files name, as -e but terminated by
';'.
#######################
# rename - Usage Case #
#######################
In most cases, using 'mv' for a single file or Thunar's batch renaming
program for muliple files works greate; however, if your file name
includes special characters or is a weird namaing convention, such as
123456789_FileName:2019:01:01 - Title.txt, the current version of Thunar
(as of 2019/06/26) will return errors. So you can use:
rename -n 's/.{10}(.*)/$1/' *
** The '-n' part lets you run the command as a test; remove to do the
batch renaming for real.
... to batch rename a bunch of files to remove the first ten characters.
rename is a Perl module made specifically for renaming, while 'mv' is
more or less supposed to be used to move a file from one directory to
another and not really to rename, though it works just fine for that for
single files or in some cases with multiple files via the 'find' command.
ICONV(1) Linux User Manual ICONV(1)
NAME
iconv - convert text from one character encoding to another
SYNOPSIS
iconv [options] [-f from-encoding] [-t to-encoding] [inputfile]...
DESCRIPTION
The iconv program reads in text in one encoding and outputs the text in another encoding.
If no input files are given, or if it is given as a dash (-), iconv reads from standard
input. If no output file is given, iconv writes to standard output.
If no from-encoding is given, the default is derived from the current locale's character
encoding. If no to-encoding is given, the default is derived from the current locale's
character encoding.
OPTIONS
-f from-encoding, --from-code=from-encoding
Use from-encoding for input characters.
-t to-encoding, --to-code=to-encoding
Use to-encoding for output characters.
If the string //IGNORE is appended to to-encoding, characters that cannot be con‐
verted are discarded and an error is printed after conversion.
If the string //TRANSLIT is appended to to-encoding, characters being converted are
transliterated when needed and possible. This means that when a character cannot
be represented in the target character set, it can be approximated through one or
several similar looking characters. Characters that are outside of the target
character set and cannot be transliterated are replaced with a question mark (?) in
the output.
-l, --list
List all known character set encodings.
-c Silently discard characters that cannot be converted instead of terminating when
encountering such characters.
-o outputfile, --output=outputfile
Use outputfile for output.
-s, --silent
This option is ignored; it is provided only for compatibility.
--verbose
Print progress information on standard error when processing multiple files.
-?, --help
Print a usage summary and exit.
--usage
Print a short usage summary and exit.
-V, --version
Print the version number, license, and disclaimer of warranty for iconv.
EXIT STATUS
Zero on success, non-zero on errors.
ENVIRONMENT
Internally, the iconv program uses the iconv(3) function which in turn uses gconv modules
(dynamically loaded shared libraries) to convert to and from a character set. Before
calling iconv(3), the iconv program must first allocate a conversion descriptor using
iconv_open(3). The operation of the latter function is influenced by the setting of the
GCONV_PATH environment variable:
* If GCONV_PATH is not set, iconv_open(3) loads the system gconv module configuration
cache file created by iconvconfig(8) and then, based on the configuration, loads the
gconv modules needed to perform the conversion. If the system gconv module configura‐
tion cache file is not available then the system gconv module configuration file is
used.
* If GCONV_PATH is defined (as a colon-separated list of pathnames), the system gconv
module configuration cache is not used. Instead, iconv_open(3) first tries to load the
configuration files by searching the directories in GCONV_PATH in order, followed by
the system default gconv module configuration file. If a directory does not contain a
gconv module configuration file, any gconv modules that it may contain are ignored. If
a directory contains a gconv module configuration file and it is determined that a mod‐
ule needed for this conversion is available in the directory, then the needed module is
loaded from that directory, the order being such that the first suitable module found
in GCONV_PATH is used. This allows users to use custom modules and even replace sys‐
tem-provided modules by providing such modules in GCONV_PATH directories.
FILES
/usr/lib/gconv
Usual default gconv module path.
/usr/lib/gconv/gconv-modules
Usual system default gconv module configuration file.
/usr/lib/gconv/gconv-modules.cache
Usual system gconv module configuration cache.
CONFORMING TO
POSIX.1-2001.
EXAMPLE
Convert text from the ISO 8859-15 character encoding to UTF-8:
$ iconv -f ISO-8859-15 -t UTF-8 < input.txt > output.txt
The next example converts from UTF-8 to ASCII, transliterating when possible:
$ echo abc ß α € àḃç | iconv -f UTF-8 -t ASCII//TRANSLIT
abc ss ? EUR abc
SEE ALSO
locale(1), iconv(3), nl_langinfo(3), charsets(7), iconvconfig(8)
COLOPHON
This page is part of release 4.10 of the Linux man-pages project. A description of the
project, information about reporting bugs, and the latest version of this page, can be
found at https://www.kernel.org/doc/man-pages/.
GNU 2014-07-08 ICONV(1)
Usage: iconv [OPTION...] [FILE...]
Convert encoding of given files from one encoding to another.
Input/Output format specification:
-f, --from-code=NAME encoding of original text
-t, --to-code=NAME encoding for output
Information:
-l, --list list all known coded character sets
Output control:
-c omit invalid characters from output
-o, --output=FILE output file
-s, --silent suppress warnings
--verbose print progress information
-?, --help Give this help list
--usage Give a short usage message
-V, --version Print program version
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
For bug reporting instructions, please see:
<http://www.debian.org/Bugs/>.
######################
# iconv - Usage Case #
######################
Let's say you converted a bunch of PDF files to plain text (.txt).
Sometimes, that convversion includes UTF-8 characters and though that is
fine in most cases, your web browser will probably not be very happy with
that and may display weird looking characters. So in order to convert
from UTF-8 to regular ol' ASCII, use the following:
A single file:
-------------
iconv -f utf-8 -t ascii\\translit "input.txt" -o "output.txt"
Multiple files:
--------------
find . -type f -exec iconv -f utf-8 -t ascii//translit {} -o {} \;
#####[ pandoc - Simple ePub Book ]#####
| Template example:
`------------------
% Book Title
% Author Name
% &copy; 2019 Publisher Name
# Chapter One
## Subtitle
Type some text...
------------------------------------------------------------------------
Essentially, you are using markdown to write this ePub book.
------------------------------------------------------------------------
Now in a command-line, use:
pandoc book.markdown --epub-cover-image="cover.png" -o book.epub
......@@ -21,6 +21,7 @@ gitview - an ASCII/HEX file viewer
gnuplot - an interactive plotting program
hledger-ui - curses-style interface for the hledger accounting tool
hnb - Hierarchical notebook
iconv - convert text from one character encoding to another
less - opposite of more
look - check for an English word, from the dictionary, in case of confusion,
right from the shell
......
This source diff could not be displayed because it is too large. You can view the blob instead.
pandoc [OPTIONS] [FILES]
Input formats: commonmark, docbook, docx, epub, haddock, html, json*, latex,
markdown, markdown_github, markdown_mmd, markdown_phpextra,
markdown_strict, mediawiki, native, odt, opml, org, rst, t2t,
textile, twiki
[ *only Pandoc's JSON version of native AST]
Output formats: asciidoc, beamer, commonmark, context, docbook, docbook5, docx,
dokuwiki, dzslides, epub, epub3, fb2, haddock, html, html5,
icml, json*, latex, man, markdown, markdown_github,
markdown_mmd, markdown_phpextra, markdown_strict, mediawiki,
native, odt, opendocument, opml, org, pdf**, plain, revealjs,
rst, rtf, s5, slideous, slidy, tei, texinfo, textile, zimwiki
[**for pdf output, use latex or beamer and -o FILENAME.pdf]
Options:
-f FORMAT, -r FORMAT --from=FORMAT, --read=FORMAT
-t FORMAT, -w FORMAT --to=FORMAT, --write=FORMAT
-o FILENAME --output=FILENAME
--data-dir=DIRECTORY
-R --parse-raw
-S --smart
--old-dashes
--base-header-level=NUMBER
--indented-code-classes=STRING
-F PROGRAM --filter=PROGRAM
--normalize
-p --preserve-tabs
--tab-stop=NUMBER
--track-changes=accept|reject|all
--file-scope
--extract-media=PATH
-s --standalone
--template=FILENAME
-M KEY[:VALUE] --metadata=KEY[:VALUE]
-V KEY[:VALUE] --variable=KEY[:VALUE]
-D FORMAT --print-default-template=FORMAT
--print-default-data-file=FILE
--dpi=NUMBER
--no-wrap
--wrap=[auto|none|preserve]
--columns=NUMBER
--toc, --table-of-contents
--toc-depth=NUMBER
--no-highlight
--highlight-style=STYLE
-H FILENAME --include-in-header=FILENAME
-B FILENAME --include-before-body=FILENAME
-A FILENAME --include-after-body=FILENAME
--self-contained
--html-q-tags
--ascii
--reference-links
--atx-headers
--chapters
-N --number-sections
--number-offset=NUMBERS
--no-tex-ligatures
--listings
-i --incremental
--slide-level=NUMBER
--section-divs
--default-image-extension=extension
--email-obfuscation=none|javascript|references
--id-prefix=STRING
-T STRING --title-prefix=STRING
-c URL --css=URL
--reference-odt=FILENAME
--reference-docx=FILENAME
--epub-stylesheet=FILENAME
--epub-cover-image=FILENAME
--epub-metadata=FILENAME
--epub-embed-font=FILE
--epub-chapter-level=NUMBER
--latex-engine=PROGRAM
--latex-engine-opt=STRING
--bibliography=FILE
--csl=FILE
--citation-abbreviations=FILE
--natbib
--biblatex
-m[URL] --latexmathml[=URL], --asciimathml[=URL]
--mathml[=URL]
--mimetex[=URL]
--webtex[=URL]
--jsmath[=URL]
--mathjax[=URL]
--katex[=URL]
--katex-stylesheet=URL
--gladtex
--trace
--dump-args
--ignore-args
--verbose
--bash-completion
-v --version
-h --help
#####[ pandoc - Simple ePub Book ]#####
| Template example:
`------------------
% Book Title
% Author Name
% &copy; 2019 Publisher Name
# Chapter One
## Subtitle
Type some text...
------------------------------------------------------------------------
Essentially, you are using markdown to write this ePub book.
------------------------------------------------------------------------
Now in a command-line, use:
pandoc book.markdown --epub-cover-image="cover.png" -o book.epub
......@@ -161,6 +161,7 @@ host - DNS lookup utility
htop - interactive process viewer
hubic-backup - hubiC backup command line tool for linux & OSX
hydrogen - a simple drum machine/step sequencer
iconv - convert text from one character encoding to another
id - print real and effective user and group IDs
ImageMagick - image manipulation programs -- binaries
img2txt - convert images to various text-based coloured files
......@@ -260,6 +261,7 @@ random, srandom, initstate, setstate - random number generator
ranger - visual file manager
rar - archive files with compression
rarcrack - password cracker for rar archives
rename - renames multiple files
rfcdiff - compare RFCs or Internet Drafts or any other text files
rkhunter - RootKit Hunter
rm - remove files or directories
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment