├── README.md ├── list ├── man ├── man1 │ ├── age-keygen.1 │ ├── age.1 │ ├── basename.1 │ ├── cal.1 │ ├── checkbashisms.1 │ ├── col.1 │ ├── colrm.1 │ ├── column.1 │ ├── comm.1 │ ├── csplit.1 │ ├── cut.1 │ ├── dirname.1 │ ├── expand.1 │ ├── expr.1 │ ├── f2c.1 │ ├── false.1 │ ├── fmt.1 │ ├── fold.1 │ ├── funzip.1 │ ├── gawk.1 │ ├── getopt.1 │ ├── gperf.1 │ ├── hexdump.1 │ ├── join.1 │ ├── jot.1 │ ├── lam.1 │ ├── look.1 │ ├── lzmadec.1 │ ├── lzmainfo.1 │ ├── minisign.1 │ ├── mktemp.1 │ ├── ncal.1 │ ├── nl.1 │ ├── oathtool.1 │ ├── od.1 │ ├── paste.1 │ ├── printf.1 │ ├── rs.1 │ ├── seq.1 │ ├── split.1 │ ├── sqlite3.1 │ ├── ssh-copy-id.1 │ ├── strings.1 │ ├── unexpand.1 │ ├── unzip.1 │ ├── unzipsfx.1 │ ├── which.1 │ ├── xmlcatalog.1 │ ├── xmllint.1 │ ├── xsltproc.1 │ ├── xz.1 │ ├── xzdec.1 │ ├── zip.1 │ ├── zipcloak.1 │ ├── zipnote.1 │ └── zipsplit.1 ├── man6 │ ├── banner.6 │ └── morse.6 └── nnn.1 ├── packages ├── ace-editor ├── age ├── banner ├── base64 ├── basename ├── cal ├── checkbashisms ├── codemirror ├── col ├── colrm ├── column ├── comm ├── csplit ├── cut ├── dirname ├── expand ├── expr ├── f2c ├── false ├── fmt ├── fold ├── gawk ├── getopt ├── git ├── gnu-pw-mgr ├── gperf ├── graphviz ├── hexdump ├── imgcat ├── join ├── jot ├── json2csv ├── lam ├── llvm ├── llvm-18 ├── look ├── lzmadec ├── markdown-it ├── minisign ├── mktemp ├── mmd6-tex-files ├── monaco-editor ├── morse ├── ncal ├── nl ├── nnn ├── oathtool ├── paste ├── printf ├── rg ├── rs ├── scheme-s7 ├── seq ├── split ├── sqlite3 ├── ssh-copy-id ├── strings ├── texlive ├── texlive-2025 ├── texlive_fonts ├── texlive_fonts-2025 ├── unexpand ├── which ├── xmlcatalog ├── xmllint ├── xsltproc ├── xz └── zip ├── pkg └── uninstall ├── ace-editor ├── age ├── banner ├── base64 ├── basename ├── cal ├── checkbashisms ├── codemirror ├── col ├── colrm ├── column ├── comm ├── csplit ├── cut ├── dirname ├── expand ├── expr ├── f2c ├── false ├── fmt ├── fold ├── gawk ├── getopt ├── git ├── gnu-pw-mgr ├── gperf ├── graphviz ├── hexdump ├── imgcat ├── join ├── jot ├── json2csv ├── lam ├── llvm ├── llvm-18 ├── look ├── lzmadec ├── markdown-it ├── minisign ├── mktemp ├── mmd6-tex-files ├── monaco-editor ├── morse ├── ncal ├── nl ├── nnn ├── oathtool ├── paste ├── printf ├── rg ├── rs ├── scheme-s7 ├── seq ├── split ├── sqlite3 ├── ssh-copy-id ├── strings ├── texlive ├── texlive-2025 ├── texlive_fonts ├── texlive_fonts-2025 ├── unexpand ├── which ├── xmlcatalog ├── xmllint ├── xsltproc ├── xz └── zip /README.md: -------------------------------------------------------------------------------- 1 | # a-Shell-commands 2 | shell commands, pre-compiled to webAssembly, ready to use in a-Shell 3 | 4 | ## Purpose 5 | 6 | [a-Shell](https://github.com/holzschu/a-shell) is a terminal for iOS. Several commands are provided, pre-compiled to iOS format. With the latest release (1.4.x), you can also execute commands compiled to webAssemly (wasm). If the command creates, writes or reads local files, it is best to use the specific [WASI-sdk](https://github.com/holzschu/wasi-sdk) to compile them. 7 | 8 | Once compiled to webAssembly, binaries can be shared with other users of a-Shell. Click on the command you want, download it to your iPad or iPhone, move it to `~/Documents/bin/` and use it (a-Shell will add ".wasm" at the end and call the webAssembly JIT compiler on commands that are in the PATH). 9 | 10 | file, ffmpeg, tree, ctags, readtags and xz are also part of the a-Shell AppStore release. 11 | 12 | The idea is that we can share pre-compiled commands. Submit yours through pull-requests. 13 | 14 | ## List of commands, with their source code: 15 | 16 | - [base64](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/base64): http://base64.sourceforge.net 17 | - [checkbashisms](https://salsa.debian.org/debian/devscripts) 18 | - f2c: http://www.netlib.org/f2c/ 19 | - [f2c](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/f2c) 20 | - [libf2c.a](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/libf2c.a) 21 | - Compile Fortran code to C with `f2c file.f`, then compile the C code with `clang file.c -L ~/Library/lib -lf2c -D_WASI_EMULATED_SIGNAL -lwasi_emulated_signal`. 22 | - `-L ` is followed by the directory where you actually installed `libf2c.a` 23 | - [json2csv](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/json2csv): http://github.com/buger/jsonparser/ 24 | - [lzmadec](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/lzmadec.wasm), [lzmainfo](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/lzmainfo.wasm): https://git.tukaani.org/xz 25 | - [sqlite3](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/sqlite3.wasm): https://www.sqlite.org/index.html 26 | - [zip](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/zip.wasm), [unzip](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/unzip.wasm), [zipcloak](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/zipcloak.wasm), [zipnote](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/zipnote.wasm), [zipsplit](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/zipsplit.wasm), [funzip](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/funzip.wasm), [unzipsfx](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/unzipsfx.wasm): http://infozip.sourceforge.net/UnZip.html 27 | 28 | 29 | ## Commands already included in a-Shell (with their source code): 30 | 31 | - [ctags](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/ctags.wasm)/[readtags](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/readtags.wasm): https://github.com/universal-ctags/ctags/ 32 | - [file](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/file.wasm): https://github.com/file/file/ 33 | - ffmpeg: https://www.ffmpeg.org (a-Shell has a native version of ffmpeg, but you can try this webAssembly version for comparison) 34 | - [ffmpeg](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/ffmpeg.wasm) (all codecs enabled, external libs: libx264, zlib: 18 MB) 35 | - [ffprobe](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/ffprobe.wasm) (all codecs enabled, external libs: libx264, zlib: 18 MB) 36 | - [ffmpeg_lite](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/ffmpeg_lite.wasm) (decoders: H263, H264, Mpeg4, MKV, AAC, AC3 only, 3.2 MB) 37 | - [tree](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/tree.wasm): http://mama.indstate.edu/users/ice/tree/ 38 | - [xz](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/xz.wasm), [xzdec](https://github.com/holzschu/a-Shell-commands/releases/download/0.1/xzdec.wasm): https://git.tukaani.org/xz 39 | 40 | -------------------------------------------------------------------------------- /list: -------------------------------------------------------------------------------- 1 | ace-editor 2 | age 3 | banner 4 | base64 5 | cal 6 | checkbashisms 7 | codemirror 8 | col 9 | colrm 10 | column 11 | comm 12 | csplit 13 | cut 14 | expand 15 | false 16 | f2c 17 | fmt 18 | fold 19 | gawk 20 | getopt 21 | git 22 | gnu-pw-mgr 23 | graphviz 24 | hexdump 25 | imgcat 26 | join 27 | jot 28 | json2csv 29 | lam 30 | look 31 | llvm 32 | llvm-18 33 | lzmadec 34 | markdown-it 35 | minisign 36 | mktemp 37 | mmd6-tex-files 38 | monaco-editor 39 | morse 40 | ncal 41 | nl 42 | nnn 43 | oathtool 44 | paste 45 | printf 46 | rg 47 | rs 48 | scheme-s7 49 | seq 50 | split 51 | sqlite3 52 | strings 53 | texlive 54 | texlive-2025 55 | texlive_fonts 56 | texlive_fonts-2025 57 | unexpand 58 | which 59 | xmlcatalog 60 | xmllint 61 | xsltproc 62 | xz 63 | zip 64 | -------------------------------------------------------------------------------- /man/man1/age-keygen.1: -------------------------------------------------------------------------------- 1 | .\" generated with Ronn-NG/v0.9.1 2 | .\" http://github.com/apjanke/ronn-ng/tree/0.9.1 3 | .TH "AGE\-KEYGEN" "1" "June 2024" "" 4 | .SH "NAME" 5 | \fBage\-keygen\fR \- generate age(1) key pairs 6 | .SH "SYNOPSIS" 7 | \fBage\-keygen\fR [\fB\-o\fR \fIOUTPUT\fR] 8 | .br 9 | \fBage\-keygen\fR \fB\-y\fR [\fB\-o\fR \fIOUTPUT\fR] [\fIINPUT\fR] 10 | .br 11 | .SH "DESCRIPTION" 12 | \fBage\-keygen\fR generates a new native age(1) key pair, and outputs the identity to standard output or to the \fIOUTPUT\fR file\. The output includes the public key and the current time as comments\. 13 | .P 14 | If the output is not going to a terminal, \fBage\-keygen\fR prints the public key to standard error\. 15 | .SH "OPTIONS" 16 | .TP 17 | \fB\-o\fR, \fB\-\-output\fR=\fIOUTPUT\fR 18 | Write the identity to \fIOUTPUT\fR instead of standard output\. 19 | .IP 20 | If \fIOUTPUT\fR already exists, it is not overwritten\. 21 | .TP 22 | \fB\-y\fR 23 | Read an identity file from \fIINPUT\fR or from standard input and output the corresponding recipient(s), one per line, with no comments\. 24 | .TP 25 | \fB\-\-version\fR 26 | Print the version and exit\. 27 | .SH "EXAMPLES" 28 | Generate a new identity: 29 | .IP "" 4 30 | .nf 31 | $ age\-keygen 32 | # created: 2021\-01\-02T15:30:45+01:00 33 | # public key: age1lvyvwawkr0mcnnnncaghunadrqkmuf9e6507x9y920xxpp866cnql7dp2z 34 | AGE\-SECRET\-KEY\-1N9JEPW6DWJ0ZQUDX63F5A03GX8QUW7PXDE39N8UYF82VZ9PC8UFS3M7XA9 35 | .fi 36 | .IP "" 0 37 | .P 38 | Write a new identity to \fBkey\.txt\fR: 39 | .IP "" 4 40 | .nf 41 | $ age\-keygen \-o key\.txt 42 | Public key: age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p 43 | .fi 44 | .IP "" 0 45 | .P 46 | Convert an identity to a recipient: 47 | .IP "" 4 48 | .nf 49 | $ age\-keygen \-y key\.txt 50 | age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p 51 | .fi 52 | .IP "" 0 53 | .SH "SEE ALSO" 54 | age(1) 55 | .SH "AUTHORS" 56 | Filippo Valsorda \fIage@filippo\.io\fR 57 | -------------------------------------------------------------------------------- /man/man1/basename.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1990, 1993, 1994 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" This code is derived from software contributed to Berkeley by 5 | .\" the Institute of Electrical and Electronics Engineers, Inc. 6 | .\" 7 | .\" Redistribution and use in source and binary forms, with or without 8 | .\" modification, are permitted provided that the following conditions 9 | .\" are met: 10 | .\" 1. Redistributions of source code must retain the above copyright 11 | .\" notice, this list of conditions and the following disclaimer. 12 | .\" 2. Redistributions in binary form must reproduce the above copyright 13 | .\" notice, this list of conditions and the following disclaimer in the 14 | .\" documentation and/or other materials provided with the distribution. 15 | .\" 3. All advertising materials mentioning features or use of this software 16 | .\" must display the following acknowledgement: 17 | .\" This product includes software developed by the University of 18 | .\" California, Berkeley and its contributors. 19 | .\" 4. Neither the name of the University nor the names of its contributors 20 | .\" may be used to endorse or promote products derived from this software 21 | .\" without specific prior written permission. 22 | .\" 23 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 | .\" SUCH DAMAGE. 34 | .\" 35 | .\" @(#)basename.1 8.2 (Berkeley) 4/18/94 36 | .\" $FreeBSD: src/usr.bin/basename/basename.1,v 1.13 2002/06/30 13:40:35 jmallett Exp $ 37 | .\" 38 | .Dd April 18, 1994 39 | .Dt BASENAME 1 40 | .Os 41 | .Sh NAME 42 | .Nm basename , dirname 43 | .Nd return filename or directory portion of pathname 44 | .Sh SYNOPSIS 45 | .Nm 46 | .Ar string 47 | .Op Ar suffix 48 | .Nm 49 | .Op Fl a 50 | .Op Fl s Ar suffix 51 | .Ar string 52 | .Op Ar ... 53 | .Nm dirname 54 | .Ar string 55 | .Sh DESCRIPTION 56 | The 57 | .Nm 58 | utility deletes any prefix ending with the last slash 59 | .Ql \&/ 60 | character present in 61 | .Ar string 62 | (after first stripping trailing slashes), 63 | and a 64 | .Ar suffix , 65 | if given. 66 | The 67 | .Ar suffix 68 | is not stripped if it is identical to the remaining characters in 69 | .Ar string . 70 | The resulting filename is written to the standard output. 71 | A non-existent suffix is ignored. 72 | If 73 | .Fl a 74 | is specified, then every argument is treated as a 75 | .Ar string 76 | as if 77 | .Nm 78 | were invoked with just one argument. 79 | If 80 | .Fl s 81 | is specified, then the 82 | .Ar suffix 83 | is taken as its argument, and all other arguments are treated as a 84 | .Ar string . 85 | .Pp 86 | The 87 | .Nm dirname 88 | utility deletes the filename portion, beginning 89 | with the last slash 90 | .Ql \&/ 91 | character to the end of 92 | .Ar string 93 | (after first stripping trailing slashes), 94 | and writes the result to the standard output. 95 | .Sh EXAMPLES 96 | The following line sets the shell variable 97 | .Ev FOO 98 | to 99 | .Pa /usr/bin . 100 | .Pp 101 | .Dl FOO=`dirname /usr/bin/trail` 102 | .Sh DIAGNOSTICS 103 | .Ex -std basename dirname 104 | .Sh SEE ALSO 105 | .Xr csh 1 , 106 | .Xr sh 1 107 | .Sh STANDARDS 108 | The 109 | .Nm 110 | and 111 | .Nm dirname 112 | utilities are expected to be 113 | .St -p1003.2 114 | compatible. 115 | -------------------------------------------------------------------------------- /man/man1/cal.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1997 Wolfgang Helbig 2 | .\" All rights reserved. 3 | .\" 4 | .\" Redistribution and use in source and binary forms, with or without 5 | .\" modification, are permitted provided that the following conditions 6 | .\" are met: 7 | .\" 1. Redistributions of source code must retain the above copyright 8 | .\" notice, this list of conditions and the following disclaimer. 9 | .\" 2. Redistributions in binary form must reproduce the above copyright 10 | .\" notice, this list of conditions and the following disclaimer in the 11 | .\" documentation and/or other materials provided with the distribution. 12 | .\" 13 | .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 | .\" SUCH DAMAGE. 24 | .\" 25 | .\" $FreeBSD$ 26 | .\" 27 | .Dd March 14, 2009 28 | .Dt CAL 1 29 | .Os 30 | .Sh NAME 31 | .Nm cal , 32 | .Nm ncal 33 | .Nd displays a calendar and the date of Easter 34 | .Sh SYNOPSIS 35 | .Nm 36 | .Op Fl 3hjy 37 | .Op Fl A Ar number 38 | .Op Fl B Ar number 39 | .Oo 40 | .Op Ar month 41 | .Ar year 42 | .Oc 43 | .Nm 44 | .Op Fl 3hj 45 | .Op Fl A Ar number 46 | .Op Fl B Ar number 47 | .Fl m Ar month 48 | .Op Ar year 49 | .Nm ncal 50 | .Op Fl 3hjJpwy 51 | .Op Fl A Ar number 52 | .Op Fl B Ar number 53 | .Op Fl s Ar country_code 54 | .Oo 55 | .Op Ar month 56 | .Ar year 57 | .Oc 58 | .Nm ncal 59 | .Op Fl 3hJeo 60 | .Op Fl A Ar number 61 | .Op Fl B Ar number 62 | .Op Ar year 63 | .Nm ncal 64 | .Op Fl CN 65 | .Op Fl H Ar yyyy-mm-dd 66 | .Op Fl d Ar yyyy-mm 67 | .Sh DESCRIPTION 68 | The 69 | .Nm 70 | utility displays a simple calendar in traditional format and 71 | .Nm ncal 72 | offers an alternative layout, more options and the date of Easter. 73 | The new format is a little cramped but it makes a year fit 74 | on a 25x80 terminal. 75 | If arguments are not specified, 76 | the current month is displayed. 77 | .Pp 78 | The options are as follows: 79 | .Bl -tag -width indent 80 | .It Fl h 81 | Turns off highlighting of today. 82 | .It Fl J 83 | Display Julian Calendar, if combined with the 84 | .Fl e 85 | option, display date of Easter according to the Julian Calendar. 86 | .It Fl e 87 | Display date of Easter (for western churches). 88 | .It Fl j 89 | Display Julian days (days one-based, numbered from January 1). 90 | .It Fl m Ar month 91 | Display the specified 92 | .Ar month . 93 | If 94 | .Ar month 95 | is specified as a decimal number, it may be followed by the letter 96 | .Ql f 97 | or 98 | .Ql p 99 | to indicate the following or preceding month of that number, 100 | respectively. 101 | .It Fl o 102 | Display date of Orthodox Easter (Greek and Russian 103 | Orthodox Churches). 104 | .It Fl p 105 | Print the country codes and switching days from Julian to Gregorian 106 | Calendar as they are assumed by 107 | .Nm ncal . 108 | The country code as determined from the local environment is marked 109 | with an asterisk. 110 | .It Fl s Ar country_code 111 | Assume the switch from Julian to Gregorian Calendar at the date 112 | associated with the 113 | .Ar country_code . 114 | If not specified, 115 | .Nm ncal 116 | tries to guess the switch date from the local environment or 117 | falls back to September 2, 1752. 118 | This was when Great 119 | Britain and her colonies switched to the Gregorian Calendar. 120 | .It Fl w 121 | Print the number of the week below each week column. 122 | .It Fl y 123 | Display a calendar for the specified year. 124 | .It Fl 3 125 | Display the previous, current and next month surrounding today. 126 | .It Fl A Ar number 127 | Display the 128 | .Ar number 129 | of months after the current month. 130 | .It Fl B Ar number 131 | Display the 132 | .Ar number 133 | of months before the current month. 134 | .It Fl C 135 | Switch to 136 | .Nm cal 137 | mode. 138 | .It Fl N 139 | Switch to 140 | .Nm ncal 141 | mode. 142 | .It Fl d Ar yyyy-mm 143 | Use 144 | .Ar yyyy-mm 145 | as the current date (for debugging of date selection). 146 | .It Fl H Ar yyyy-mm-dd 147 | Use 148 | .Ar yyyy-mm-dd 149 | as the current date (for debugging of highlighting). 150 | .El 151 | .Pp 152 | A single parameter specifies the year (1\(en9999) to be displayed; 153 | note the year must be fully specified: 154 | .Dq Li cal 89 155 | will 156 | .Em not 157 | display a calendar for 1989. Two parameters denote the month and 158 | year; the month is either a number between 1 and 12, or a full or 159 | abbreviated name as specified by the current locale. Month and 160 | year default to those of the current system clock and time zone (so 161 | .Dq Li cal -m 8 162 | will display a calendar for the month of August in the current 163 | year). 164 | .Pp 165 | Not all options can be used together. For example 166 | .Dq Li -3 -A 2 -B 3 -y -m 7 167 | would mean: 168 | show me the three months around the seventh month, three before 169 | that, two after that and the whole year. 170 | .Nm ncal 171 | will warn about these combinations. 172 | .Pp 173 | A year starts on January 1. 174 | .Pp 175 | Highlighting of dates is disabled if stdout is not a tty. 176 | .Sh SEE ALSO 177 | .Xr calendar 3 , 178 | .Xr strftime 3 179 | .Sh HISTORY 180 | A 181 | .Nm 182 | command appeared in 183 | .At v5 . 184 | The 185 | .Nm ncal 186 | command appeared in 187 | .Fx 2.2.6 . 188 | .Sh AUTHORS 189 | The 190 | .Nm ncal 191 | command and manual were written by 192 | .An Wolfgang Helbig Aq Mt helbig@FreeBSD.org . 193 | .Sh BUGS 194 | The assignment of Julian\(enGregorian switching dates to country 195 | codes is historically naive for many countries. 196 | .Pp 197 | Not all options are compatible and using them in different orders 198 | will give varying results. 199 | -------------------------------------------------------------------------------- /man/man1/checkbashisms.1: -------------------------------------------------------------------------------- 1 | .TH CHECKBASHISMS 1 "Debian Utilities" "DEBIAN" \" -*- nroff -*- 2 | .SH NAME 3 | checkbashisms \- check for bashisms in /bin/sh scripts 4 | .SH SYNOPSIS 5 | \fBcheckbashisms\fR \fIscript\fR ... 6 | .br 7 | \fBcheckbashisms \-\-help\fR|\fB\-\-version\fR 8 | .SH DESCRIPTION 9 | \fBcheckbashisms\fR, based on one of the checks from the \fBlintian\fR 10 | system, performs basic checks on \fI/bin/sh\fR shell scripts for the 11 | possible presence of bashisms. It takes the names of the shell 12 | scripts on the command line, and outputs warnings if possible bashisms 13 | are detected. 14 | .PP 15 | Note that the definition of a bashism in this context roughly equates 16 | to "a shell feature that is not required to be supported by POSIX"; this 17 | means that some issues flagged may be permitted under optional sections 18 | of POSIX, such as XSI or User Portability. 19 | .PP 20 | In cases where POSIX and Debian Policy disagree, \fBcheckbashisms\fR by 21 | default allows extensions permitted by Policy but may also provide 22 | options for stricter checking. 23 | .SH OPTIONS 24 | .TP 25 | .BR \-\-help ", " \-h 26 | Show a summary of options. 27 | .TP 28 | .BR \-\-newline ", " \-n 29 | Check for "\fBecho \-n\fR" usage (non POSIX but required by Debian Policy 10.4.) 30 | .TP 31 | .BR \-\-posix ", " \-p 32 | Check for issues which are non POSIX but required to be supported by Debian 33 | Policy 10.4 (implies \fB\-n\fR). 34 | .TP 35 | .BR \-\-force ", " \-f 36 | Force each script to be checked, even if it would normally not be (for 37 | instance, it has a bash or non POSIX shell shebang or appears to be a 38 | shell wrapper). 39 | .TP 40 | .BR \-\-lint ", " \-l 41 | Act like a linter, for integration into a text editor. Possible 42 | bashisms will be printed in stdout, like so: 43 | .IP 44 | .I {filename}:{lineno}:1: warning: possible bashism; {explanation} 45 | .TP 46 | .BR \-\-extra ", " \-x 47 | Highlight lines which, whilst they do not contain bashisms, may be 48 | useful in determining whether a particular issue is a false positive 49 | which may be ignored. 50 | For example, the use of "\fB$BASH_ENV\fR" may be preceded by checking 51 | whether "\fB$BASH\fR" is set. 52 | .TP 53 | .BR \-\-early-fail ", " \-e 54 | Exit right after a first error is seen. 55 | .TP 56 | .BR \-\-version ", " \-v 57 | Show version and copyright information. 58 | .SH "EXIT VALUES" 59 | The exit value will be 0 if no possible bashisms or other problems 60 | were detected. Otherwise it will be the sum of the following error 61 | values: 62 | .TP 63 | 1 64 | A possible bashism was detected. 65 | .TP 66 | 2 67 | A file was skipped for some reason, for example, because it was 68 | unreadable or not found. The warning message will give details. 69 | .TP 70 | 4 71 | No bashisms were detected in a bash script. 72 | .SH "SEE ALSO" 73 | .BR lintian (1) 74 | .SH AUTHOR 75 | \fBcheckbashisms\fR was originally written as a shell script by Yann Dirson 76 | <\fIdirson@debian.org\fR> and rewritten in Perl with many more features by 77 | Julian Gilbey <\fIjdg@debian.org\fR>. 78 | -------------------------------------------------------------------------------- /man/man1/col.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1990, 1993 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" This code is derived from software contributed to Berkeley by 5 | .\" Michael Rendell. 6 | .\" 7 | .\" Redistribution and use in source and binary forms, with or without 8 | .\" modification, are permitted provided that the following conditions 9 | .\" are met: 10 | .\" 1. Redistributions of source code must retain the above copyright 11 | .\" notice, this list of conditions and the following disclaimer. 12 | .\" 2. Redistributions in binary form must reproduce the above copyright 13 | .\" notice, this list of conditions and the following disclaimer in the 14 | .\" documentation and/or other materials provided with the distribution. 15 | .\" 3. All advertising materials mentioning features or use of this software 16 | .\" must display the following acknowledgement: 17 | .\" This product includes software developed by the University of 18 | .\" California, Berkeley and its contributors. 19 | .\" 4. Neither the name of the University nor the names of its contributors 20 | .\" may be used to endorse or promote products derived from this software 21 | .\" without specific prior written permission. 22 | .\" 23 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 | .\" SUCH DAMAGE. 34 | .\" 35 | .\" @(#)col.1 8.1 (Berkeley) 6/29/93 36 | .\" $FreeBSD: src/usr.bin/col/col.1,v 1.19 2005/02/13 22:25:20 ru Exp $ 37 | .\" 38 | .Dd August 4, 2004 39 | .Dt COL 1 40 | .Os 41 | .Sh NAME 42 | .Nm col 43 | .Nd filter reverse line feeds from input 44 | .Sh SYNOPSIS 45 | .Nm 46 | .Op Fl bfhpx 47 | .Op Fl l Ar num 48 | .Sh DESCRIPTION 49 | The 50 | .Nm 51 | utility filters out reverse (and half reverse) line feeds so that the output is 52 | in the correct order with only forward and half forward line 53 | feeds, and replaces white-space characters with tabs where possible. 54 | This can be useful in processing the output of 55 | .Xr nroff 1 56 | and 57 | .Xr tbl 1 . 58 | .Pp 59 | The 60 | .Nm 61 | utility reads from the standard input and writes to the standard output. 62 | .Pp 63 | The options are as follows: 64 | .Bl -tag -width indent 65 | .It Fl b 66 | Do not output any backspaces, printing only the last character 67 | written to each column position. 68 | .It Fl f 69 | Forward half line feeds are permitted (``fine'' mode). 70 | Normally characters printed on a half line boundary are printed 71 | on the following line. 72 | .It Fl h 73 | Do not output multiple spaces instead of tabs (default). 74 | .It Fl l Ar num 75 | Buffer at least 76 | .Ar num 77 | lines in memory. 78 | By default, 128 lines are buffered. 79 | .It Fl p 80 | Force unknown control sequences to be passed through unchanged. 81 | Normally, 82 | .Nm 83 | will filter out any control sequences from the input other than those 84 | recognized and interpreted by itself, which are listed below. 85 | .It Fl x 86 | Output multiple spaces instead of tabs. 87 | .El 88 | .Pp 89 | The control sequences for carriage motion that 90 | .Nm 91 | understands and their decimal values are listed in the following 92 | table: 93 | .Pp 94 | .Bl -tag -width "carriage return" -compact 95 | .It ESC\-7 96 | reverse line feed (escape then 7) 97 | .It ESC\-8 98 | half reverse line feed (escape then 8) 99 | .It ESC\-9 100 | half forward line feed (escape then 9) 101 | .It backspace 102 | moves back one column (8); ignored in the first column 103 | .It carriage return 104 | (13) 105 | .It newline 106 | forward line feed (10); also does carriage return 107 | .It shift in 108 | shift to normal character set (15) 109 | .It shift out 110 | shift to alternate character set (14) 111 | .It space 112 | moves forward one column (32) 113 | .It tab 114 | moves forward to next tab stop (9) 115 | .It vertical tab 116 | reverse line feed (11) 117 | .El 118 | .Pp 119 | All unrecognized control characters and escape sequences are 120 | discarded. 121 | .Pp 122 | The 123 | .Nm 124 | utility keeps track of the character set as characters are read and makes 125 | sure the character set is correct when they are output. 126 | .Pp 127 | If the input attempts to back up to the last flushed line, 128 | .Nm 129 | will display a warning message. 130 | .Sh ENVIRONMENT 131 | The 132 | .Ev LANG , LC_ALL 133 | and 134 | .Ev LC_CTYPE 135 | environment variables affect the execution of 136 | .Nm 137 | as described in 138 | .Xr environ 7 . 139 | .Sh EXIT STATUS 140 | .Ex -std 141 | .Sh SEE ALSO 142 | .Xr colcrt 1 , 143 | .Xr expand 1 , 144 | .Xr nroff 1 , 145 | .Xr tbl 1 146 | .Sh STANDARDS 147 | The 148 | .Nm 149 | utility conforms to 150 | .St -susv2 . 151 | .Sh HISTORY 152 | A 153 | .Nm 154 | command 155 | appeared in 156 | .At v6 . 157 | -------------------------------------------------------------------------------- /man/man1/colrm.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1980, 1990, 1993 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" Redistribution and use in source and binary forms, with or without 5 | .\" modification, are permitted provided that the following conditions 6 | .\" are met: 7 | .\" 1. Redistributions of source code must retain the above copyright 8 | .\" notice, this list of conditions and the following disclaimer. 9 | .\" 2. Redistributions in binary form must reproduce the above copyright 10 | .\" notice, this list of conditions and the following disclaimer in the 11 | .\" documentation and/or other materials provided with the distribution. 12 | .\" 3. All advertising materials mentioning features or use of this software 13 | .\" must display the following acknowledgement: 14 | .\" This product includes software developed by the University of 15 | .\" California, Berkeley and its contributors. 16 | .\" 4. Neither the name of the University nor the names of its contributors 17 | .\" may be used to endorse or promote products derived from this software 18 | .\" without specific prior written permission. 19 | .\" 20 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 | .\" SUCH DAMAGE. 31 | .\" 32 | .\" @(#)colrm.1 8.1 (Berkeley) 6/6/93 33 | .\" $FreeBSD: src/usr.bin/colrm/colrm.1,v 1.11 2005/01/17 07:44:14 ru Exp $ 34 | .\" 35 | .Dd August 4, 2004 36 | .Dt COLRM 1 37 | .Os 38 | .Sh NAME 39 | .Nm colrm 40 | .Nd remove columns from a file 41 | .Sh SYNOPSIS 42 | .Nm 43 | .Op Ar start Op Ar stop 44 | .Sh DESCRIPTION 45 | The 46 | .Nm 47 | utility removes selected columns from the lines of a file. 48 | A column is defined as a single character in a line. 49 | Input is read from the standard input. 50 | Output is written to the standard output. 51 | .Pp 52 | If only the 53 | .Ar start 54 | column is specified, columns numbered less than the 55 | .Ar start 56 | column will be written. 57 | If both 58 | .Ar start 59 | and 60 | .Ar stop 61 | columns are specified, columns numbered less than the 62 | .Ar start 63 | column 64 | or greater than the 65 | .Ar stop 66 | column will be written. 67 | Column numbering starts with one, not zero. 68 | .Pp 69 | Tab characters increment the column count to the next multiple of eight. 70 | Backspace characters decrement the column count by one. 71 | .Sh ENVIRONMENT 72 | The 73 | .Ev LANG , LC_ALL 74 | and 75 | .Ev LC_CTYPE 76 | environment variables affect the execution of 77 | .Nm 78 | as described in 79 | .Xr environ 7 . 80 | .Sh EXIT STATUS 81 | .Ex -std 82 | .Sh SEE ALSO 83 | .Xr awk 1 , 84 | .Xr column 1 , 85 | .Xr cut 1 , 86 | .Xr paste 1 87 | .Sh HISTORY 88 | The 89 | .Nm 90 | command appeared in 91 | .Bx 3.0 . 92 | -------------------------------------------------------------------------------- /man/man1/column.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1989, 1990, 1993 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" Redistribution and use in source and binary forms, with or without 5 | .\" modification, are permitted provided that the following conditions 6 | .\" are met: 7 | .\" 1. Redistributions of source code must retain the above copyright 8 | .\" notice, this list of conditions and the following disclaimer. 9 | .\" 2. Redistributions in binary form must reproduce the above copyright 10 | .\" notice, this list of conditions and the following disclaimer in the 11 | .\" documentation and/or other materials provided with the distribution. 12 | .\" 4. Neither the name of the University nor the names of its contributors 13 | .\" may be used to endorse or promote products derived from this software 14 | .\" without specific prior written permission. 15 | .\" 16 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 17 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 | .\" SUCH DAMAGE. 27 | .\" 28 | .\" @(#)column.1 8.1 (Berkeley) 6/6/93 29 | .\" $FreeBSD: src/usr.bin/column/column.1,v 1.16 2010/12/11 08:32:16 joel Exp $ 30 | .\" 31 | .Dd July 29, 2004 32 | .Dt COLUMN 1 33 | .Os 34 | .Sh NAME 35 | .Nm column 36 | .Nd columnate lists 37 | .Sh SYNOPSIS 38 | .Nm 39 | .Op Fl tx 40 | .Op Fl c Ar columns 41 | .Op Fl s Ar sep 42 | .Op Ar 43 | .Sh DESCRIPTION 44 | The 45 | .Nm 46 | utility formats its input into multiple columns. 47 | Rows are filled before columns. 48 | Input is taken from 49 | .Ar file 50 | operands, or, by default, from the standard input. 51 | Empty lines are ignored. 52 | .Pp 53 | The options are as follows: 54 | .Bl -tag -width indent 55 | .It Fl c 56 | Output is formatted for a display 57 | .Ar columns 58 | wide. 59 | .It Fl s 60 | Specify a set of characters to be used to delimit columns for the 61 | .Fl t 62 | option. 63 | .It Fl t 64 | Determine the number of columns the input contains and create a table. 65 | Columns are delimited with whitespace, by default, or with the characters 66 | supplied using the 67 | .Fl s 68 | option. 69 | Useful for pretty-printing displays. 70 | .It Fl x 71 | Fill columns before filling rows. 72 | .El 73 | .Sh ENVIRONMENT 74 | The 75 | .Ev COLUMNS , LANG , LC_ALL 76 | and 77 | .Ev LC_CTYPE 78 | environment variables affect the execution of 79 | .Nm 80 | as described in 81 | .Xr environ 7 . 82 | .Sh EXIT STATUS 83 | .Ex -std 84 | .Sh EXAMPLES 85 | .Dl (printf \&"PERM LINKS OWNER GROUP SIZE MONTH DAY \&"\ \&;\ \&\e 86 | .Dl printf \&"HH:MM/YEAR NAME\en\&"\ \&;\ \&\e 87 | .Dl ls -l \&| sed 1d) \&| column -t 88 | .Sh SEE ALSO 89 | .Xr colrm 1 , 90 | .Xr ls 1 , 91 | .Xr paste 1 , 92 | .Xr sort 1 93 | .Sh HISTORY 94 | The 95 | .Nm 96 | command appeared in 97 | .Bx 4.3 Reno . 98 | .Sh BUGS 99 | Input lines are limited to 100 | .Dv LINE_MAX 101 | (2048) bytes in length. 102 | -------------------------------------------------------------------------------- /man/man1/comm.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1989, 1990, 1993 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" This code is derived from software contributed to Berkeley by 5 | .\" the Institute of Electrical and Electronics Engineers, Inc. 6 | .\" 7 | .\" Redistribution and use in source and binary forms, with or without 8 | .\" modification, are permitted provided that the following conditions 9 | .\" are met: 10 | .\" 1. Redistributions of source code must retain the above copyright 11 | .\" notice, this list of conditions and the following disclaimer. 12 | .\" 2. Redistributions in binary form must reproduce the above copyright 13 | .\" notice, this list of conditions and the following disclaimer in the 14 | .\" documentation and/or other materials provided with the distribution. 15 | .\" 3. All advertising materials mentioning features or use of this software 16 | .\" must display the following acknowledgement: 17 | .\" This product includes software developed by the University of 18 | .\" California, Berkeley and its contributors. 19 | .\" 4. Neither the name of the University nor the names of its contributors 20 | .\" may be used to endorse or promote products derived from this software 21 | .\" without specific prior written permission. 22 | .\" 23 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 | .\" SUCH DAMAGE. 34 | .\" 35 | .\" From: @(#)comm.1 8.1 (Berkeley) 6/6/93 36 | .\" $FreeBSD: src/usr.bin/comm/comm.1,v 1.14 2005/01/25 22:28:34 tjr Exp $ 37 | .\" 38 | .Dd January 26, 2005 39 | .Os 40 | .Dt COMM 1 41 | .Sh NAME 42 | .Nm comm 43 | .Nd select or reject lines common to two files 44 | .Sh SYNOPSIS 45 | .Nm 46 | .Op Fl 123i 47 | .Ar file1 file2 48 | .Sh DESCRIPTION 49 | The 50 | .Nm 51 | utility reads 52 | .Ar file1 53 | and 54 | .Ar file2 , 55 | which should be 56 | sorted lexically, and produces three text 57 | columns as output: lines only in 58 | .Ar file1 ; 59 | lines only in 60 | .Ar file2 ; 61 | and lines in both files. 62 | .Pp 63 | The filename ``-'' means the standard input. 64 | .Pp 65 | The following options are available: 66 | .Bl -tag -width indent 67 | .It Fl 1 68 | Suppress printing of column 1. 69 | .It Fl 2 70 | Suppress printing of column 2. 71 | .It Fl 3 72 | Suppress printing of column 3. 73 | .It Fl i 74 | Case insensitive comparison of lines. 75 | .El 76 | .Pp 77 | Each column will have a number of tab characters prepended to it 78 | equal to the number of lower numbered columns that are being printed. 79 | For example, if column number two is being suppressed, lines printed 80 | in column number one will not have any tabs preceding them, and lines 81 | printed in column number three will have one. 82 | .Pp 83 | The 84 | .Nm 85 | utility assumes that the files are lexically sorted; all characters 86 | participate in line comparisons. 87 | .Sh ENVIRONMENT 88 | The 89 | .Ev LANG , 90 | .Ev LC_ALL , 91 | .Ev LC_COLLATE , 92 | and 93 | .Ev LC_CTYPE 94 | environment variables affect the execution of 95 | .Nm 96 | as described in 97 | .Xr environ 7 . 98 | .Sh EXIT STATUS 99 | .Ex -std 100 | .Sh SEE ALSO 101 | .Xr cmp 1 , 102 | .Xr diff 1 , 103 | .Xr sort 1 , 104 | .Xr uniq 1 105 | .Sh STANDARDS 106 | The 107 | .Nm 108 | utility conforms to 109 | .St -p1003.2-92 . 110 | .Pp 111 | The 112 | .Fl i 113 | option is an extension to the 114 | .Tn POSIX 115 | standard. 116 | .Sh HISTORY 117 | A 118 | .Nm 119 | command appeared in 120 | .At v4 . 121 | .Sh BUGS 122 | Input lines are limited to 123 | .Dv LINE_MAX 124 | (2048) characters in length. 125 | -------------------------------------------------------------------------------- /man/man1/csplit.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 2002 Tim J. Robbins. 2 | .\" All rights reserved. 3 | .\" 4 | .\" Redistribution and use in source and binary forms, with or without 5 | .\" modification, are permitted provided that the following conditions 6 | .\" are met: 7 | .\" 1. Redistributions of source code must retain the above copyright 8 | .\" notice, this list of conditions and the following disclaimer. 9 | .\" 2. Redistributions in binary form must reproduce the above copyright 10 | .\" notice, this list of conditions and the following disclaimer in the 11 | .\" documentation and/or other materials provided with the distribution. 12 | .\" 13 | .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 | .\" SUCH DAMAGE. 24 | .\" 25 | .\" $FreeBSD: src/usr.bin/csplit/csplit.1,v 1.11 2005/01/25 22:29:51 tjr Exp $ 26 | .\" 27 | .Dd January 26, 2005 28 | .Dt CSPLIT 1 29 | .Os 30 | .Sh NAME 31 | .Nm csplit 32 | .Nd split files based on context 33 | .Sh SYNOPSIS 34 | .Nm 35 | .Op Fl ks 36 | .Op Fl f Ar prefix 37 | .Op Fl n Ar number 38 | .Ar file args ... 39 | .Sh DESCRIPTION 40 | The 41 | .Nm 42 | utility splits 43 | .Ar file 44 | into pieces using the patterns 45 | .Ar args . 46 | If 47 | .Ar file 48 | is 49 | a dash 50 | .Pq Sq Fl , 51 | .Nm 52 | reads from standard input. 53 | .Pp 54 | The options are as follows: 55 | .Bl -tag -width indent 56 | .It Fl f Ar prefix 57 | Give created files names beginning with 58 | .Ar prefix . 59 | The default is 60 | .Dq Pa xx . 61 | .It Fl k 62 | Do not remove output files if an error occurs or a 63 | .Dv HUP , 64 | .Dv INT 65 | or 66 | .Dv TERM 67 | signal is received. 68 | .It Fl n Ar number 69 | Use 70 | .Ar number 71 | of decimal digits after the 72 | .Ar prefix 73 | to form the file name. 74 | The default is 2. 75 | .It Fl s 76 | Do not write the size of each output file to standard output as it is 77 | created. 78 | .El 79 | .Pp 80 | The 81 | .Ar args 82 | operands may be a combination of the following patterns: 83 | .Bl -tag -width indent 84 | .It Xo 85 | .Sm off 86 | .Cm / Ar regexp Cm / Op Oo Cm + | - Oc Ar offset 87 | .Sm on 88 | .Xc 89 | Create a file containing the input from the current line to (but not including) 90 | the next line matching the given basic regular expression. 91 | An optional 92 | .Ar offset 93 | from the line that matched may be specified. 94 | .It Xo 95 | .Sm off 96 | .Cm % Ar regexp Cm % Op Oo Cm + | - Oc Ar offset 97 | .Sm on 98 | .Xc 99 | Same as above but a file is not created for the output. 100 | .It Ar line_no 101 | Create containing the input from the current line to (but not including) 102 | the specified line number. 103 | .It Cm { Ns Ar num Ns Cm } 104 | Repeat the previous pattern the specified number of times. 105 | If it follows a line number pattern, a new file will be created for each 106 | .Ar line_no 107 | lines, 108 | .Ar num 109 | times. 110 | The first line of the file is line number 1 for historic reasons. 111 | .El 112 | .Pp 113 | After all the patterns have been processed, the remaining input data 114 | (if there is any) will be written to a new file. 115 | .Pp 116 | Requesting to split at a line before the current line number or past the 117 | end of the file will result in an error. 118 | .Sh ENVIRONMENT 119 | The 120 | .Ev LANG , LC_ALL , LC_COLLATE 121 | and 122 | .Ev LC_CTYPE 123 | environment variables affect the execution of 124 | .Nm 125 | as described in 126 | .Xr environ 7 . 127 | .Sh EXIT STATUS 128 | .Ex -std 129 | .Sh EXAMPLES 130 | Split the 131 | .Xr mdoc 7 132 | file 133 | .Pa foo.1 134 | into one file for each section (up to 20): 135 | .Pp 136 | .Dl "csplit -k foo.1 '%^\e.Sh%' '/^\e.Sh/' '{20}'" 137 | .Pp 138 | Split standard input after the first 99 lines and every 100 lines thereafter: 139 | .Pp 140 | .Dl "csplit -k - 100 '{19}'" 141 | .Sh SEE ALSO 142 | .Xr sed 1 , 143 | .Xr split 1 , 144 | .Xr re_format 7 145 | .Sh STANDARDS 146 | The 147 | .Nm 148 | utility conforms to 149 | .St -p1003.1-2001 . 150 | .Sh HISTORY 151 | A 152 | .Nm 153 | command appeared in PWB UNIX. 154 | .Sh BUGS 155 | Input lines are limited to 156 | .Dv LINE_MAX 157 | (2048) bytes in length. 158 | -------------------------------------------------------------------------------- /man/man1/cut.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1989, 1990, 1993 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" This code is derived from software contributed to Berkeley by 5 | .\" the Institute of Electrical and Electronics Engineers, Inc. 6 | .\" 7 | .\" Redistribution and use in source and binary forms, with or without 8 | .\" modification, are permitted provided that the following conditions 9 | .\" are met: 10 | .\" 1. Redistributions of source code must retain the above copyright 11 | .\" notice, this list of conditions and the following disclaimer. 12 | .\" 2. Redistributions in binary form must reproduce the above copyright 13 | .\" notice, this list of conditions and the following disclaimer in the 14 | .\" documentation and/or other materials provided with the distribution. 15 | .\" 3. All advertising materials mentioning features or use of this software 16 | .\" must display the following acknowledgement: 17 | .\" This product includes software developed by the University of 18 | .\" California, Berkeley and its contributors. 19 | .\" 4. Neither the name of the University nor the names of its contributors 20 | .\" may be used to endorse or promote products derived from this software 21 | .\" without specific prior written permission. 22 | .\" 23 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 | .\" SUCH DAMAGE. 34 | .\" 35 | .\" @(#)cut.1 8.1 (Berkeley) 6/6/93 36 | .\" $FreeBSD: src/usr.bin/cut/cut.1,v 1.32 2007/02/28 10:13:32 ru Exp $ 37 | .\" 38 | .Dd December 21, 2006 39 | .Dt CUT 1 40 | .Os 41 | .Sh NAME 42 | .Nm cut 43 | .Nd cut out selected portions of each line of a file 44 | .Sh SYNOPSIS 45 | .Nm 46 | .Fl b Ar list 47 | .Op Fl n 48 | .Op Ar 49 | .Nm 50 | .Fl c Ar list 51 | .Op Ar 52 | .Nm 53 | .Fl f Ar list 54 | .Op Fl d Ar delim 55 | .Op Fl s 56 | .Op Ar 57 | .Sh DESCRIPTION 58 | The 59 | .Nm 60 | utility cuts out selected portions of each line (as specified by 61 | .Ar list ) 62 | from each 63 | .Ar file 64 | and writes them to the standard output. 65 | If no 66 | .Ar file 67 | arguments are specified, or a file argument is a single dash 68 | .Pq Sq Fl , 69 | .Nm 70 | reads from the standard input. 71 | The items specified by 72 | .Ar list 73 | can be in terms of column position or in terms of fields delimited 74 | by a special character. 75 | Column numbering starts from 1. 76 | .Pp 77 | The 78 | .Ar list 79 | option argument 80 | is a comma or whitespace separated set of numbers and/or 81 | number ranges. 82 | Number ranges consist of a number, a dash 83 | .Pq Sq \- , 84 | and a second number 85 | and select the fields or columns from the first number to the second, 86 | inclusive. 87 | Numbers or number ranges may be preceded by a dash, which selects all 88 | fields or columns from 1 to the last number. 89 | Numbers or number ranges may be followed by a dash, which selects all 90 | fields or columns from the last number to the end of the line. 91 | Numbers and number ranges may be repeated, overlapping, and in any order. 92 | If a field or column is specified multiple times, it will appear only 93 | once in the output. 94 | It is not an error to select fields or columns not present in the 95 | input line. 96 | .Pp 97 | The options are as follows: 98 | .Bl -tag -width indent 99 | .It Fl b Ar list 100 | The 101 | .Ar list 102 | specifies byte positions. 103 | .It Fl c Ar list 104 | The 105 | .Ar list 106 | specifies character positions. 107 | .It Fl d Ar delim 108 | Use 109 | .Ar delim 110 | as the field delimiter character instead of the tab character. 111 | .It Fl f Ar list 112 | The 113 | .Ar list 114 | specifies fields, separated in the input by the field delimiter character 115 | (see the 116 | .Fl d 117 | option.) 118 | Output fields are separated by a single occurrence of the field delimiter 119 | character. 120 | .It Fl n 121 | Do not split multi-byte characters. 122 | Characters will only be output if at least one byte is selected, and, 123 | after a prefix of zero or more unselected bytes, the rest of the bytes 124 | that form the character are selected. 125 | .It Fl s 126 | Suppress lines with no field delimiter characters. 127 | Unless specified, lines with no delimiters are passed through unmodified. 128 | .El 129 | .Sh ENVIRONMENT 130 | The 131 | .Ev LANG , LC_ALL 132 | and 133 | .Ev LC_CTYPE 134 | environment variables affect the execution of 135 | .Nm 136 | as described in 137 | .Xr environ 7 . 138 | .Sh EXIT STATUS 139 | .Ex -std 140 | .Sh EXAMPLES 141 | Extract users' login names and shells from the system 142 | .Xr passwd 5 143 | file as 144 | .Dq name:shell 145 | pairs: 146 | .Pp 147 | .Dl "cut -d : -f 1,7 /etc/passwd" 148 | .Pp 149 | Show the names and login times of the currently logged in users: 150 | .Pp 151 | .Dl "who | cut -c 1-16,26-38" 152 | .Sh SEE ALSO 153 | .Xr colrm 1 , 154 | .Xr paste 1 155 | .Sh STANDARDS 156 | The 157 | .Nm 158 | utility conforms to 159 | .St -p1003.2-92 . 160 | .Sh HISTORY 161 | A 162 | .Nm 163 | command appeared in 164 | .Tn AT&T 165 | System III 166 | .Ux . 167 | -------------------------------------------------------------------------------- /man/man1/dirname.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1990, 1993, 1994 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" This code is derived from software contributed to Berkeley by 5 | .\" the Institute of Electrical and Electronics Engineers, Inc. 6 | .\" 7 | .\" Redistribution and use in source and binary forms, with or without 8 | .\" modification, are permitted provided that the following conditions 9 | .\" are met: 10 | .\" 1. Redistributions of source code must retain the above copyright 11 | .\" notice, this list of conditions and the following disclaimer. 12 | .\" 2. Redistributions in binary form must reproduce the above copyright 13 | .\" notice, this list of conditions and the following disclaimer in the 14 | .\" documentation and/or other materials provided with the distribution. 15 | .\" 3. All advertising materials mentioning features or use of this software 16 | .\" must display the following acknowledgement: 17 | .\" This product includes software developed by the University of 18 | .\" California, Berkeley and its contributors. 19 | .\" 4. Neither the name of the University nor the names of its contributors 20 | .\" may be used to endorse or promote products derived from this software 21 | .\" without specific prior written permission. 22 | .\" 23 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 | .\" SUCH DAMAGE. 34 | .\" 35 | .\" @(#)basename.1 8.2 (Berkeley) 4/18/94 36 | .\" $FreeBSD: src/usr.bin/basename/basename.1,v 1.13 2002/06/30 13:40:35 jmallett Exp $ 37 | .\" 38 | .Dd April 18, 1994 39 | .Dt BASENAME 1 40 | .Os 41 | .Sh NAME 42 | .Nm basename , dirname 43 | .Nd return filename or directory portion of pathname 44 | .Sh SYNOPSIS 45 | .Nm 46 | .Ar string 47 | .Op Ar suffix 48 | .Nm 49 | .Op Fl a 50 | .Op Fl s Ar suffix 51 | .Ar string 52 | .Op Ar ... 53 | .Nm dirname 54 | .Ar string 55 | .Sh DESCRIPTION 56 | The 57 | .Nm 58 | utility deletes any prefix ending with the last slash 59 | .Ql \&/ 60 | character present in 61 | .Ar string 62 | (after first stripping trailing slashes), 63 | and a 64 | .Ar suffix , 65 | if given. 66 | The 67 | .Ar suffix 68 | is not stripped if it is identical to the remaining characters in 69 | .Ar string . 70 | The resulting filename is written to the standard output. 71 | A non-existent suffix is ignored. 72 | If 73 | .Fl a 74 | is specified, then every argument is treated as a 75 | .Ar string 76 | as if 77 | .Nm 78 | were invoked with just one argument. 79 | If 80 | .Fl s 81 | is specified, then the 82 | .Ar suffix 83 | is taken as its argument, and all other arguments are treated as a 84 | .Ar string . 85 | .Pp 86 | The 87 | .Nm dirname 88 | utility deletes the filename portion, beginning 89 | with the last slash 90 | .Ql \&/ 91 | character to the end of 92 | .Ar string 93 | (after first stripping trailing slashes), 94 | and writes the result to the standard output. 95 | .Sh EXAMPLES 96 | The following line sets the shell variable 97 | .Ev FOO 98 | to 99 | .Pa /usr/bin . 100 | .Pp 101 | .Dl FOO=`dirname /usr/bin/trail` 102 | .Sh DIAGNOSTICS 103 | .Ex -std basename dirname 104 | .Sh SEE ALSO 105 | .Xr csh 1 , 106 | .Xr sh 1 107 | .Sh STANDARDS 108 | The 109 | .Nm 110 | and 111 | .Nm dirname 112 | utilities are expected to be 113 | .St -p1003.2 114 | compatible. 115 | -------------------------------------------------------------------------------- /man/man1/expand.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1980, 1990, 1993 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" Redistribution and use in source and binary forms, with or without 5 | .\" modification, are permitted provided that the following conditions 6 | .\" are met: 7 | .\" 1. Redistributions of source code must retain the above copyright 8 | .\" notice, this list of conditions and the following disclaimer. 9 | .\" 2. Redistributions in binary form must reproduce the above copyright 10 | .\" notice, this list of conditions and the following disclaimer in the 11 | .\" documentation and/or other materials provided with the distribution. 12 | .\" 3. All advertising materials mentioning features or use of this software 13 | .\" must display the following acknowledgement: 14 | .\" This product includes software developed by the University of 15 | .\" California, Berkeley and its contributors. 16 | .\" 4. Neither the name of the University nor the names of its contributors 17 | .\" may be used to endorse or promote products derived from this software 18 | .\" without specific prior written permission. 19 | .\" 20 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 | .\" SUCH DAMAGE. 31 | .\" 32 | .\" @(#)expand.1 8.1 (Berkeley) 6/9/93 33 | .\" $FreeBSD: src/usr.bin/expand/expand.1,v 1.15 2006/10/13 16:22:24 ru Exp $ 34 | .\" 35 | .Dd October 13, 2006 36 | .Dt EXPAND 1 37 | .Os 38 | .Sh NAME 39 | .Nm expand , 40 | .Nm unexpand 41 | .Nd expand tabs to spaces, and vice versa 42 | .Sh SYNOPSIS 43 | .Nm 44 | .Oo 45 | .Fl t 46 | .Sm off 47 | .Ar tab1 , tab2 , ... , tabn 48 | .Sm on 49 | .Oc 50 | .Op Ar 51 | .Nm unexpand 52 | .Oo 53 | .Fl a | t 54 | .Sm off 55 | .Ar tab1 , tab2 , ... , tabn 56 | .Sm on 57 | .Oc 58 | .Op Ar 59 | .Sh DESCRIPTION 60 | The 61 | .Nm 62 | utility processes the named files or the standard input writing 63 | the standard output with tabs changed into blanks. 64 | Backspace characters are preserved into the output and decrement 65 | the column count for tab calculations. 66 | The 67 | .Nm 68 | utility is useful for pre-processing character files 69 | (before sorting, looking at specific columns, etc.) that 70 | contain tabs. 71 | .Pp 72 | The 73 | .Nm unexpand 74 | utility puts tabs back into the data from the standard input or the named 75 | files and writes the result on the standard output. 76 | .Pp 77 | The following options are available: 78 | .Bl -tag -width indent 79 | .It Fl a 80 | .Nm ( unexpand 81 | only.) 82 | By default, only leading blanks and tabs 83 | are reconverted to maximal strings of tabs. 84 | If the 85 | .Fl a 86 | option is given, then tabs are inserted whenever they would compress the 87 | resultant file by replacing two or more characters. 88 | .It Fl t Sm Ar tab1 , tab2 , ... , tabn Sm 89 | Set tab stops at column positions 90 | .Ar tab1 , tab2 , ... , tabn . 91 | If only a single number is given, tab stops are set that number of 92 | column positions apart instead of the default number of 8. 93 | .El 94 | .Sh ENVIRONMENT 95 | The 96 | .Ev LANG , LC_ALL 97 | and 98 | .Ev LC_CTYPE 99 | environment variables affect the execution of 100 | .Nm 101 | and 102 | .Nm unexpand 103 | as described in 104 | .Xr environ 7 . 105 | .Sh EXIT STATUS 106 | .Ex -std expand unexpand 107 | .Sh STANDARDS 108 | The 109 | .Nm 110 | and 111 | .Nm unexpand 112 | utilities conform to 113 | .St -p1003.1-2001 . 114 | .Sh HISTORY 115 | The 116 | .Nm 117 | command appeared in 118 | .Bx 3.0 . 119 | -------------------------------------------------------------------------------- /man/man1/false.1: -------------------------------------------------------------------------------- 1 | .\" $NetBSD: false.1,v 1.5 1997/10/18 14:46:54 lukem Exp $ 2 | .\" 3 | .\" Copyright (c) 1983, 1990 The Regents of the University of California. 4 | .\" All rights reserved. 5 | .\" 6 | .\" This code is derived from software contributed to Berkeley by 7 | .\" the Institute of Electrical and Electronics Engineers, Inc. 8 | .\" 9 | .\" Redistribution and use in source and binary forms, with or without 10 | .\" modification, are permitted provided that the following conditions 11 | .\" are met: 12 | .\" 1. Redistributions of source code must retain the above copyright 13 | .\" notice, this list of conditions and the following disclaimer. 14 | .\" 2. Redistributions in binary form must reproduce the above copyright 15 | .\" notice, this list of conditions and the following disclaimer in the 16 | .\" documentation and/or other materials provided with the distribution. 17 | .\" 3. All advertising materials mentioning features or use of this software 18 | .\" must display the following acknowledgement: 19 | .\" This product includes software developed by the University of 20 | .\" California, Berkeley and its contributors. 21 | .\" 4. Neither the name of the University nor the names of its contributors 22 | .\" may be used to endorse or promote products derived from this software 23 | .\" without specific prior written permission. 24 | .\" 25 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 26 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 29 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 | .\" SUCH DAMAGE. 36 | .\" 37 | .\" from: @(#)false.1 6.6 (Berkeley) 7/24/91 38 | .\" $NetBSD: false.1,v 1.5 1997/10/18 14:46:54 lukem Exp $ 39 | .\" 40 | .Dd July 24, 1991 41 | .Dt FALSE 1 42 | .Os BSD 4.2 43 | .Sh NAME 44 | .Nm false 45 | .Nd Return false value. 46 | .Sh SYNOPSIS 47 | .Nm 48 | .Sh DESCRIPTION 49 | The 50 | .Nm 51 | utility always exits with a nonzero exit code. 52 | .Sh SEE ALSO 53 | .Xr csh 1 , 54 | .Xr sh 1 , 55 | .Xr true 1 56 | .Sh STANDARDS 57 | The 58 | .Nm 59 | utility conforms to 60 | .St -p1003.2-92 . 61 | -------------------------------------------------------------------------------- /man/man1/fold.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1980, 1993 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" Redistribution and use in source and binary forms, with or without 5 | .\" modification, are permitted provided that the following conditions 6 | .\" are met: 7 | .\" 1. Redistributions of source code must retain the above copyright 8 | .\" notice, this list of conditions and the following disclaimer. 9 | .\" 2. Redistributions in binary form must reproduce the above copyright 10 | .\" notice, this list of conditions and the following disclaimer in the 11 | .\" documentation and/or other materials provided with the distribution. 12 | .\" 3. All advertising materials mentioning features or use of this software 13 | .\" must display the following acknowledgement: 14 | .\" This product includes software developed by the University of 15 | .\" California, Berkeley and its contributors. 16 | .\" 4. Neither the name of the University nor the names of its contributors 17 | .\" may be used to endorse or promote products derived from this software 18 | .\" without specific prior written permission. 19 | .\" 20 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 | .\" SUCH DAMAGE. 31 | .\" 32 | .\" @(#)fold.1 8.1 (Berkeley) 6/6/93 33 | .\" $FreeBSD: src/usr.bin/fold/fold.1,v 1.12 2004/08/02 11:15:01 tjr Exp $ 34 | .\" 35 | .Dd August 2, 2004 36 | .Dt FOLD 1 37 | .Os 38 | .Sh NAME 39 | .Nm fold 40 | .Nd "fold long lines for finite width output device" 41 | .Sh SYNOPSIS 42 | .Nm 43 | .Op Fl bs 44 | .Op Fl w Ar width 45 | .Op Ar 46 | .Sh DESCRIPTION 47 | The 48 | .Nm 49 | utility is a filter which folds the contents of the specified files, 50 | or the standard input if no files are specified, 51 | breaking the lines to have a maximum of 80 columns. 52 | .Pp 53 | The options are as follows: 54 | .Bl -tag -width indent 55 | .It Fl b 56 | Count 57 | .Ar width 58 | in bytes rather than column positions. 59 | .It Fl s 60 | Fold line after the last blank character within the first 61 | .Ar width 62 | column positions (or bytes). 63 | .It Fl w Ar width 64 | Specify a line width to use instead of the default 80 columns. 65 | .Ar Width 66 | should be a multiple of 8 if tabs are present, or the tabs should 67 | be expanded using 68 | .Xr expand 1 69 | before using 70 | .Nm . 71 | .El 72 | .Sh ENVIRONMENT 73 | The 74 | .Ev LANG , LC_ALL 75 | and 76 | .Ev LC_CTYPE 77 | environment variables affect the execution of 78 | .Nm 79 | as described in 80 | .Xr environ 7 . 81 | .Sh SEE ALSO 82 | .Xr expand 1 , 83 | .Xr fmt 1 84 | .Sh STANDARDS 85 | The 86 | .Nm 87 | utility conforms to 88 | .St -p1003.1-2001 . 89 | .Sh BUGS 90 | If underlining is present it may be messed up by folding. 91 | -------------------------------------------------------------------------------- /man/man1/funzip.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1990-2009 Info-ZIP. All rights reserved. 2 | .\" 3 | .\" See the accompanying file LICENSE, version 2009-Jan-02 or later 4 | .\" (the contents of which are also included in unzip.h) for terms of use. 5 | .\" If, for some reason, all these files are missing, the Info-ZIP license 6 | .\" also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html 7 | .\" 8 | .\" funzip.1 by Greg Roelofs and others. 9 | .\" 10 | .\" ========================================================================= 11 | .\" define .EX/.EE (for multiline user-command examples; normal Courier font) 12 | .de EX 13 | .in +4n 14 | .nf 15 | .ft CW 16 | .. 17 | .de EE 18 | .ft R 19 | .fi 20 | .in -4n 21 | .. 22 | .\" ========================================================================= 23 | .TH FUNZIP 1L "20 April 2009 (v3.95)" "Info-ZIP" 24 | .SH NAME 25 | funzip \- filter for extracting from a ZIP archive in a pipe 26 | .PD 27 | .SH SYNOPSIS 28 | \fBfunzip\fP [\fB\-password\fP] [\fIinput[.zip|.gz]\fP] 29 | .\" ========================================================================= 30 | .SH ARGUMENTS 31 | .IP [\fI\-password\fP] 32 | Optional password to be used if ZIP archive is encrypted. Decryption 33 | may not be supported at some sites. See DESCRIPTION for more details. 34 | .IP [\fIinput[.zip|.gz]\fP] 35 | Optional input archive file specification. See DESCRIPTION for details. 36 | .PD 37 | .\" ========================================================================= 38 | .SH DESCRIPTION 39 | .I funzip 40 | without a file argument acts as a filter; that is, it assumes that a 41 | ZIP archive (or a \fIgzip\fP'd(1) file) is being piped into 42 | standard input, and it extracts the first member from the archive to stdout. 43 | When stdin comes from a tty device, 44 | .I funzip 45 | assumes that this cannot be a stream of (binary) compressed data and 46 | shows a short help text, instead. 47 | If there is a file argument, then input is read from the specified file 48 | instead of from stdin. 49 | .PP 50 | A password for encrypted zip files can be specified 51 | on the command line (preceding the file name, if any) by prefixing the 52 | password with a dash. Note that this constitutes a security risk on many 53 | systems; currently running processes are often visible via simple commands 54 | (e.g., \fIps\fP(1) under Unix), and command-line histories can be read. 55 | If the first entry of the zip file is encrypted and 56 | no password is specified on the command line, then the user is prompted for 57 | a password and the password is not echoed on the console. 58 | .PP 59 | Given the limitation on single-member extraction, \fIfunzip\fP is most 60 | useful in conjunction with a secondary archiver program such as \fItar\fP(1). 61 | The following section includes an example illustrating this usage in the 62 | case of disk backups to tape. 63 | .PD 64 | .\" ========================================================================= 65 | .SH EXAMPLES 66 | To use \fIfunzip\fP to extract the first member file of the archive test.zip 67 | and to pipe it into \fImore\fP(1): 68 | .PP 69 | .EX 70 | funzip test.zip | more 71 | .EE 72 | .PP 73 | To use \fIfunzip\fP to test the first member file of test.zip (any errors 74 | will be reported on standard error): 75 | .PP 76 | .EX 77 | funzip test.zip > /dev/null 78 | .EE 79 | .PP 80 | To use \fIzip\fP and \fIfunzip\fP in place of \fIcompress\fP(1) and 81 | \fIzcat\fP(1) (or \fIgzip\fP(1L) and \fIgzcat\fP(1L)) for tape backups: 82 | .PP 83 | .EX 84 | tar cf \- . | zip \-7 | dd of=/dev/nrst0 obs=8k 85 | dd if=/dev/nrst0 ibs=8k | funzip | tar xf \- 86 | .EE 87 | .PP 88 | (where, for example, nrst0 is a SCSI tape drive). 89 | .PD 90 | .\" ========================================================================= 91 | .SH BUGS 92 | When piping an encrypted file into \fImore\fP and allowing \fIfunzip\fP 93 | to prompt for password, the terminal may sometimes be reset to a non-echo 94 | mode. This is apparently due to a race condition between the two programs; 95 | \fIfunzip\fP changes the terminal mode to non-echo before \fImore\fP reads 96 | its state, and \fImore\fP then ``restores'' the terminal to this mode before 97 | exiting. To recover, run \fIfunzip\fP on the same file but redirect to 98 | /dev/null rather than piping into more; after prompting again for the 99 | password, \fIfunzip\fP will reset the terminal properly. 100 | .PP 101 | There is presently no way to extract any member but the first from a ZIP 102 | archive. This would be useful in the case where a ZIP archive is included 103 | within another archive. In the case where the first member is a directory, 104 | \fIfunzip\fP simply creates the directory and exits. 105 | .PP 106 | The functionality of \fIfunzip\fP should be incorporated into \fIunzip\fP 107 | itself (future release). 108 | .PD 109 | .\" ========================================================================= 110 | .SH "SEE ALSO" 111 | \fIgzip\fP(1L), \fIunzip\fP(1L), \fIunzipsfx\fP(1L), \fIzip\fP(1L), 112 | \fIzipcloak\fP(1L), \fIzipinfo\fP(1L), \fIzipnote\fP(1L), \fIzipsplit\fP(1L) 113 | .PD 114 | .\" ========================================================================= 115 | .SH URL 116 | The Info-ZIP home page is currently at 117 | .EX 118 | \fChttp://www.info-zip.org/pub/infozip/\fR 119 | .EE 120 | or 121 | .EX 122 | \fCftp://ftp.info-zip.org/pub/infozip/\fR . 123 | .EE 124 | .PD 125 | .\" ========================================================================= 126 | .SH AUTHOR 127 | Mark Adler (Info-ZIP) 128 | -------------------------------------------------------------------------------- /man/man1/getopt.1: -------------------------------------------------------------------------------- 1 | .\" $FreeBSD: src/usr.bin/getopt/getopt.1,v 1.15 2002/04/19 23:43:02 charnier Exp $ 2 | .\" 3 | .Dd April 3, 1999 4 | .Dt GETOPT 1 5 | .Os 6 | .Sh NAME 7 | .Nm getopt 8 | .Nd parse command options 9 | .Sh SYNOPSIS 10 | .Nm args=\`getopt Ar optstring $*\` 11 | ; errcode=$?; set \-\- $args 12 | .Sh DESCRIPTION 13 | The 14 | .Nm 15 | utility is used to break up options in command lines for easy parsing by 16 | shell procedures, and to check for legal options. 17 | .Ar Optstring 18 | is a string of recognized option letters (see 19 | .Xr getopt 3 ) ; 20 | if a letter is followed by a colon, the option 21 | is expected to have an argument which may or may not be 22 | separated from it by white space. 23 | The special option 24 | .Ql \-\- 25 | is used to delimit the end of the options. 26 | The 27 | .Nm 28 | utility will place 29 | .Ql \-\- 30 | in the arguments at the end of the options, 31 | or recognize it if used explicitly. 32 | The shell arguments 33 | (\fB$1 $2\fR ...) are reset so that each option is 34 | preceded by a 35 | .Ql \- 36 | and in its own shell argument; 37 | each option argument is also in its own shell argument. 38 | .Sh EXAMPLES 39 | The following code fragment shows how one might process the arguments 40 | for a command that can take the options 41 | .Fl a 42 | and 43 | .Fl b , 44 | and the option 45 | .Fl o , 46 | which requires an argument. 47 | .Pp 48 | .Bd -literal -offset indent 49 | args=\`getopt abo: $*\` 50 | # you should not use \`getopt abo: "$@"\` since that would parse 51 | # the arguments differently from what the set command below does. 52 | if [ $? != 0 ] 53 | then 54 | echo 'Usage: ...' 55 | exit 2 56 | fi 57 | set \-\- $args 58 | # You cannot use the set command with a backquoted getopt directly, 59 | # since the exit code from getopt would be shadowed by those of set, 60 | # which is zero by definition. 61 | for i 62 | do 63 | case "$i" 64 | in 65 | \-a|\-b) 66 | echo flag $i set; sflags="${i#-}$sflags"; 67 | shift;; 68 | \-o) 69 | echo oarg is "'"$2"'"; oarg="$2"; shift; 70 | shift;; 71 | \-\-) 72 | shift; break;; 73 | esac 74 | done 75 | echo single-char flags: "'"$sflags"'" 76 | echo oarg is "'"$oarg"'" 77 | .Ed 78 | .Pp 79 | This code will accept any of the following as equivalent: 80 | .Pp 81 | .Bd -literal -offset indent 82 | cmd \-aoarg file file 83 | cmd \-a \-o arg file file 84 | cmd \-oarg -a file file 85 | cmd \-a \-oarg \-\- file file 86 | .Pp 87 | .Ed 88 | .Sh SEE ALSO 89 | .Xr sh 1 , 90 | .Xr getopt 3 91 | .Sh DIAGNOSTICS 92 | The 93 | .Nm 94 | utility prints an error message on the standard error output and exits with 95 | status > 0 when it encounters an option letter not included in 96 | .Ar optstring . 97 | .Sh HISTORY 98 | Written by 99 | .An Henry Spencer , 100 | working from a Bell Labs manual page. 101 | Behavior believed identical to the Bell version. 102 | Example changed in 103 | .Fx 104 | version 3.2 and 4.0. 105 | .Sh BUGS 106 | Whatever 107 | .Xr getopt 3 108 | has. 109 | .Pp 110 | Arguments containing white space or embedded shell metacharacters 111 | generally will not survive intact; this looks easy to fix but 112 | isn't. People trying to fix 113 | .Nm 114 | or the example in this manpage should check the history of this file 115 | in 116 | .Fx . 117 | .Pp 118 | The error message for an invalid option is identified as coming 119 | from 120 | .Nm 121 | rather than from the shell procedure containing the invocation 122 | of 123 | .Nm ; 124 | this again is hard to fix. 125 | .Pp 126 | The precise best way to use the 127 | .Nm set 128 | command to set the arguments without disrupting the value(s) of 129 | shell options varies from one shell version to another. 130 | .Pp 131 | Each shellscript has to carry complex code to parse arguments halfway 132 | correcty (like the example presented here). A better getopt-like tool 133 | would move much of the complexity into the tool and keep the client 134 | shell scripts simpler. 135 | -------------------------------------------------------------------------------- /man/man1/lam.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1993 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" Redistribution and use in source and binary forms, with or without 5 | .\" modification, are permitted provided that the following conditions 6 | .\" are met: 7 | .\" 1. Redistributions of source code must retain the above copyright 8 | .\" notice, this list of conditions and the following disclaimer. 9 | .\" 2. Redistributions in binary form must reproduce the above copyright 10 | .\" notice, this list of conditions and the following disclaimer in the 11 | .\" documentation and/or other materials provided with the distribution. 12 | .\" 3. All advertising materials mentioning features or use of this software 13 | .\" must display the following acknowledgement: 14 | .\" This product includes software developed by the University of 15 | .\" California, Berkeley and its contributors. 16 | .\" 4. Neither the name of the University nor the names of its contributors 17 | .\" may be used to endorse or promote products derived from this software 18 | .\" without specific prior written permission. 19 | .\" 20 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 | .\" SUCH DAMAGE. 31 | .\" 32 | .\" @(#)lam.1 8.1 (Berkeley) 6/6/93 33 | .\" $FreeBSD: src/usr.bin/lam/lam.1,v 1.13 2004/08/12 11:34:34 tjr Exp $ 34 | .\" 35 | .Dd August 12, 2004 36 | .Dt LAM 1 37 | .Os 38 | .Sh NAME 39 | .Nm lam 40 | .Nd laminate files 41 | .Sh SYNOPSIS 42 | .Nm 43 | .Op Fl f Ar min . Ns Ar max 44 | .Op Fl s Ar sepstring 45 | .Op Fl t Ar c 46 | .Ar 47 | .Nm 48 | .Op Fl p Ar min . Ns Ar max 49 | .Op Fl s Ar sepstring 50 | .Op Fl t Ar c 51 | .Ar 52 | .Sh DESCRIPTION 53 | The 54 | .Nm 55 | utility copies the named files side by side onto the standard output. 56 | The 57 | .Em n-th 58 | input lines from the input 59 | .Ar files 60 | are considered fragments of the single long 61 | .Em n-th 62 | output line into which they are assembled. 63 | The name `\fB\-\fP' means the standard input, and may be repeated. 64 | .Pp 65 | Normally, each option affects only the 66 | .Ar file 67 | after it. 68 | If the option letter is capitalized it affects all subsequent files 69 | until it appears again uncapitalized. 70 | The options are described below: 71 | .Bl -tag -width indent 72 | .It Fl f Ar min . Ns Ar max 73 | Print line fragments according to the format string 74 | .Ar min . Ns Ar max , 75 | where 76 | .Ar min 77 | is the minimum field width and 78 | .Ar max 79 | the maximum field width. 80 | If 81 | .Ar min 82 | begins with a zero, zeros will be added to make up the field width, 83 | and if it begins with a `\-', the fragment will be left-adjusted 84 | within the field. 85 | .It Fl p Ar min . Ns Ar max 86 | Like 87 | .Fl f , 88 | but pad this file's field when end-of-file is reached 89 | and other files are still active. 90 | .It Fl s Ar sepstring 91 | Print 92 | .Ar sepstring 93 | before printing line fragments from the next file. 94 | This option may appear after the last file. 95 | .It Fl t Ar c 96 | The input line terminator is 97 | .Ar c 98 | instead of a newline. 99 | The newline normally appended to each output line is omitted. 100 | .El 101 | .Pp 102 | To print files simultaneously for easy viewing use 103 | .Xr pr 1 . 104 | .Sh EXAMPLES 105 | The command 106 | .Bd -literal 107 | lam file1 file2 file3 file4 108 | .Ed 109 | .Pp 110 | joins 4 files together along each line. 111 | To merge the lines from four different files use 112 | .Bd -literal 113 | lam file1 \-S "\\ 114 | " file2 file3 file4 115 | .Ed 116 | .Pp 117 | Every 2 lines of a file may be joined on one line with 118 | .Bd -literal 119 | lam \- \- < file 120 | .Ed 121 | .Pp 122 | and a form letter with substitutions keyed by `@' can be done with 123 | .Bd -literal 124 | lam \-t @ letter changes 125 | .Ed 126 | .Sh SEE ALSO 127 | .Xr join 1 , 128 | .Xr paste 1 , 129 | .Xr pr 1 , 130 | .Xr printf 3 131 | .Sh STANDARDS 132 | Some of the functionality of 133 | .Nm 134 | is standardized as the 135 | .Xr paste 1 136 | utility by 137 | .St -p1003.2 . 138 | .Sh BUGS 139 | The 140 | .Nm 141 | utility does not recognize multibyte characters. 142 | -------------------------------------------------------------------------------- /man/man1/look.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1990, 1993 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" Redistribution and use in source and binary forms, with or without 5 | .\" modification, are permitted provided that the following conditions 6 | .\" are met: 7 | .\" 1. Redistributions of source code must retain the above copyright 8 | .\" notice, this list of conditions and the following disclaimer. 9 | .\" 2. Redistributions in binary form must reproduce the above copyright 10 | .\" notice, this list of conditions and the following disclaimer in the 11 | .\" documentation and/or other materials provided with the distribution. 12 | .\" 3. All advertising materials mentioning features or use of this software 13 | .\" must display the following acknowledgement: 14 | .\" This product includes software developed by the University of 15 | .\" California, Berkeley and its contributors. 16 | .\" 4. Neither the name of the University nor the names of its contributors 17 | .\" may be used to endorse or promote products derived from this software 18 | .\" without specific prior written permission. 19 | .\" 20 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 | .\" SUCH DAMAGE. 31 | .\" 32 | .\" @(#)look.1 8.1 (Berkeley) 6/14/93 33 | .\" $FreeBSD: src/usr.bin/look/look.1,v 1.17 2005/01/17 07:44:22 ru Exp $ 34 | .\" 35 | .Dd July 17, 2004 36 | .Dt LOOK 1 37 | .Os 38 | .Sh NAME 39 | .Nm look 40 | .Nd display lines beginning with a given string 41 | .Sh SYNOPSIS 42 | .Nm 43 | .Op Fl df 44 | .Op Fl t Ar termchar 45 | .Ar string 46 | .Op Ar 47 | .Sh DESCRIPTION 48 | The 49 | .Nm 50 | utility displays any lines in 51 | .Ar file 52 | which contain 53 | .Ar string 54 | as a prefix. 55 | As 56 | .Nm 57 | performs a binary search, the lines in 58 | .Ar file 59 | must be sorted. 60 | .Pp 61 | If 62 | .Ar file 63 | is not specified, the file 64 | .Pa ~/Library/share/dict/words 65 | is used, only alphanumeric characters are compared and the case of 66 | alphabetic characters is ignored. 67 | .Pp 68 | The following options are available: 69 | .Bl -tag -width indent 70 | .It Fl d 71 | Dictionary character set and order, i.e., only alphanumeric characters 72 | are compared. 73 | .It Fl f 74 | Ignore the case of alphabetic characters. 75 | .It Fl t 76 | Specify a string termination character, i.e., only the characters 77 | in 78 | .Ar string 79 | up to and including the first occurrence of 80 | .Ar termchar 81 | are compared. 82 | .El 83 | .Sh ENVIRONMENT 84 | The 85 | .Ev LANG , LC_ALL 86 | and 87 | .Ev LC_CTYPE 88 | environment variables affect the execution of the 89 | .Nm 90 | utility. 91 | Their effect is described in 92 | .Xr environ 7 . 93 | .Sh FILES 94 | .Bl -tag -width /Library/share/dict/words -compact 95 | .Pa ~/Library/share/dict/words 96 | the dictionary 97 | .El 98 | .Sh EXIT STATUS 99 | The 100 | .Nm 101 | utility exits 0 if one or more lines were found and displayed, 102 | 1 if no lines were found, and >1 if an error occurred. 103 | .Sh COMPATIBILITY 104 | The original manual page stated that tabs and blank characters participated 105 | in comparisons when the 106 | .Fl d 107 | option was specified. 108 | This was incorrect and the current man page matches the historic 109 | implementation. 110 | .Sh SEE ALSO 111 | .Xr grep 1 , 112 | .Xr sort 1 113 | .Sh HISTORY 114 | A 115 | .Nm 116 | utility appeared in 117 | .At v7 . 118 | .Sh BUGS 119 | Lines are not compared according to the current locale's collating 120 | order. 121 | Input files must be sorted with 122 | .Ev LC_COLLATE 123 | set to 124 | .Ql C . 125 | -------------------------------------------------------------------------------- /man/man1/lzmadec.1: -------------------------------------------------------------------------------- 1 | .\" 2 | .\" Author: Lasse Collin 3 | .\" 4 | .\" This file has been put into the public domain. 5 | .\" You can do whatever you want with this file. 6 | .\" 7 | .TH XZDEC 1 "2017-04-19" "Tukaani" "XZ Utils" 8 | .SH NAME 9 | xzdec, lzmadec \- Small .xz and .lzma decompressors 10 | .SH SYNOPSIS 11 | .B xzdec 12 | .RI [ option... ] 13 | .RI [ file... ] 14 | .br 15 | .B lzmadec 16 | .RI [ option... ] 17 | .RI [ file... ] 18 | .SH DESCRIPTION 19 | .B xzdec 20 | is a liblzma-based decompression-only tool for 21 | .B .xz 22 | (and only 23 | .BR .xz ) 24 | files. 25 | .B xzdec 26 | is intended to work as a drop-in replacement for 27 | .BR xz (1) 28 | in the most common situations where a script 29 | has been written to use 30 | .B "xz \-\-decompress \-\-stdout" 31 | (and possibly a few other commonly used options) to decompress 32 | .B .xz 33 | files. 34 | .B lzmadec 35 | is identical to 36 | .B xzdec 37 | except that 38 | .B lzmadec 39 | supports 40 | .B .lzma 41 | files instead of 42 | .B .xz 43 | files. 44 | .PP 45 | To reduce the size of the executable, 46 | .B xzdec 47 | doesn't support multithreading or localization, 48 | and doesn't read options from 49 | .B XZ_DEFAULTS 50 | and 51 | .B XZ_OPT 52 | environment variables. 53 | .B xzdec 54 | doesn't support displaying intermediate progress information: sending 55 | .B SIGINFO 56 | to 57 | .B xzdec 58 | does nothing, but sending 59 | .B SIGUSR1 60 | terminates the process instead of displaying progress information. 61 | .SH OPTIONS 62 | .TP 63 | .BR \-d ", " \-\-decompress ", " \-\-uncompress 64 | Ignored for 65 | .BR xz (1) 66 | compatibility. 67 | .B xzdec 68 | supports only decompression. 69 | .TP 70 | .BR \-k ", " \-\-keep 71 | Ignored for 72 | .BR xz (1) 73 | compatibility. 74 | .B xzdec 75 | never creates or removes any files. 76 | .TP 77 | .BR \-c ", " \-\-stdout ", " \-\-to-stdout 78 | Ignored for 79 | .BR xz (1) 80 | compatibility. 81 | .B xzdec 82 | always writes the decompressed data to standard output. 83 | .TP 84 | .BR \-q ", " \-\-quiet 85 | Specifying this once does nothing since 86 | .B xzdec 87 | never displays any warnings or notices. 88 | Specify this twice to suppress errors. 89 | .TP 90 | .BR \-Q ", " \-\-no-warn 91 | Ignored for 92 | .BR xz (1) 93 | compatibility. 94 | .B xzdec 95 | never uses the exit status 2. 96 | .TP 97 | .BR \-h ", " \-\-help 98 | Display a help message and exit successfully. 99 | .TP 100 | .BR \-V ", " \-\-version 101 | Display the version number of 102 | .B xzdec 103 | and liblzma. 104 | .SH "EXIT STATUS" 105 | .TP 106 | .B 0 107 | All was good. 108 | .TP 109 | .B 1 110 | An error occurred. 111 | .PP 112 | .B xzdec 113 | doesn't have any warning messages like 114 | .BR xz (1) 115 | has, thus the exit status 2 is not used by 116 | .BR xzdec . 117 | .SH NOTES 118 | Use 119 | .BR xz (1) 120 | instead of 121 | .B xzdec 122 | or 123 | .B lzmadec 124 | for normal everyday use. 125 | .B xzdec 126 | or 127 | .B lzmadec 128 | are meant only for situations where it is important to have 129 | a smaller decompressor than the full-featured 130 | .BR xz (1). 131 | .PP 132 | .B xzdec 133 | and 134 | .B lzmadec 135 | are not really that small. 136 | The size can be reduced further by dropping 137 | features from liblzma at compile time, 138 | but that shouldn't usually be done for executables distributed 139 | in typical non-embedded operating system distributions. 140 | If you need a truly small 141 | .B .xz 142 | decompressor, consider using XZ Embedded. 143 | .SH "SEE ALSO" 144 | .BR xz (1) 145 | .PP 146 | XZ Embedded: 147 | -------------------------------------------------------------------------------- /man/man1/lzmainfo.1: -------------------------------------------------------------------------------- 1 | .\" 2 | .\" Author: Lasse Collin 3 | .\" 4 | .\" This file has been put into the public domain. 5 | .\" You can do whatever you want with this file. 6 | .\" 7 | .TH LZMAINFO 1 "2013-06-30" "Tukaani" "XZ Utils" 8 | .SH NAME 9 | lzmainfo \- show information stored in the .lzma file header 10 | .SH SYNOPSIS 11 | .B lzmainfo 12 | .RB [ \-\-help ] 13 | .RB [ \-\-version ] 14 | .RI [ file... ] 15 | .SH DESCRIPTION 16 | .B lzmainfo 17 | shows information stored in the 18 | .B .lzma 19 | file header. 20 | It reads the first 13 bytes from the specified 21 | .IR file , 22 | decodes the header, and prints it to standard output in human 23 | readable format. 24 | If no 25 | .I files 26 | are given or 27 | .I file 28 | is 29 | .BR \- , 30 | standard input is read. 31 | .PP 32 | Usually the most interesting information is 33 | the uncompressed size and the dictionary size. 34 | Uncompressed size can be shown only if 35 | the file is in the non-streamed 36 | .B .lzma 37 | format variant. 38 | The amount of memory required to decompress the file is 39 | a few dozen kilobytes plus the dictionary size. 40 | .PP 41 | .B lzmainfo 42 | is included in XZ Utils primarily for 43 | backward compatibility with LZMA Utils. 44 | .SH "EXIT STATUS" 45 | .TP 46 | .B 0 47 | All is good. 48 | .TP 49 | .B 1 50 | An error occurred. 51 | .SH BUGS 52 | .B lzmainfo 53 | uses 54 | .B MB 55 | while the correct suffix would be 56 | .B MiB 57 | (2^20 bytes). 58 | This is to keep the output compatible with LZMA Utils. 59 | .SH "SEE ALSO" 60 | .BR xz (1) 61 | -------------------------------------------------------------------------------- /man/man1/minisign.1: -------------------------------------------------------------------------------- 1 | .\" generated with Ronn/v0.7.3 2 | .\" http://github.com/rtomayko/ronn/tree/0.7.3 3 | . 4 | .TH "MINISIGN" "1" "January 2023" "" "" 5 | . 6 | .SH "NAME" 7 | \fBminisign\fR \- A dead simple tool to sign files and verify signatures\. 8 | . 9 | .SH "SYNOPSIS" 10 | \fBminisign\fR \-G [\-p pubkey_file] [\-s seckey_file] [\-W] 11 | . 12 | .P 13 | \fBminisign\fR \-R [\-s seckey_file] [\-p pubkey_file] 14 | . 15 | .P 16 | \fBminisign\fR \-C [\-s seckey_file] [\-W] 17 | . 18 | .P 19 | \fBminisign\fR \-S [\-H] [\-x sig_file] [\-s seckey_file] [\-c untrusted_comment] [\-t trusted_comment] \-m file [file \.\.\.] 20 | . 21 | .P 22 | \fBminisign\fR \-V [\-x sig_file] [\-p pubkey_file | \-P pubkey] [\-o] [\-q] \-m file 23 | . 24 | .SH "DESCRIPTION" 25 | \fBMinisign\fR is a dead simple tool to sign files and verify signatures\. 26 | . 27 | .P 28 | It is portable, lightweight, and uses the highly secure Ed25519 \fIhttp://ed25519\.cr\.yp\.to/\fR public\-key signature system\. 29 | . 30 | .SH "OPTIONS" 31 | These options control the actions of \fBminisign\fR\. 32 | . 33 | .TP 34 | \fB\-G\fR 35 | Generate a new key pair 36 | . 37 | .TP 38 | \fB\-C\fR 39 | Change/remove the password of a secret key 40 | . 41 | .TP 42 | \fB\-R\fR 43 | Recreate a public key file from a secret key file 44 | . 45 | .TP 46 | \fB\-S\fR 47 | Sign files 48 | . 49 | .TP 50 | \fB\-V\fR 51 | Verify that a signature is valid for a given file 52 | . 53 | .TP 54 | \fB\-H\fR 55 | Requires the input to be prehashed 56 | . 57 | .TP 58 | \fB\-l\fR 59 | Sign using the legacy format 60 | . 61 | .TP 62 | \fB\-m \fR 63 | File to sign/verify 64 | . 65 | .TP 66 | \fB\-o\fR 67 | Combined with \-V, output the file content after verification 68 | . 69 | .TP 70 | \fB\-p \fR 71 | Public key file (default: \./minisign\.pub) 72 | . 73 | .TP 74 | \fB\-P \fR 75 | Public key, as a base64 string 76 | . 77 | .TP 78 | \fB\-s \fR 79 | Secret key file (default: ~/Documents/\.minisign/minisign\.key) 80 | . 81 | .TP 82 | \fB\-W\fR 83 | Do not encrypt/decrypt the secret key with a password 84 | . 85 | .TP 86 | \fB\-x \fR 87 | Signature file (default: \.minisig) 88 | . 89 | .TP 90 | \fB\-c \fR 91 | Add a one\-line untrusted comment 92 | . 93 | .TP 94 | \fB\-t \fR 95 | Add a one\-line trusted comment 96 | . 97 | .TP 98 | \fB\-q\fR 99 | Quiet mode, suppress output 100 | . 101 | .TP 102 | \fB\-Q\fR 103 | Pretty quiet mode, only print the trusted comment 104 | . 105 | .TP 106 | \fB\-f\fR 107 | Force\. Combined with \-G, overwrite a previous key pair 108 | . 109 | .TP 110 | \fB\-v\fR 111 | Display version number 112 | . 113 | .SH "EXAMPLES" 114 | Creating a key pair 115 | . 116 | .P 117 | \fBminisign\fR \-G 118 | . 119 | .P 120 | The public key is printed and put into the \fBminisign\.pub\fR file\. The secret key is encrypted and saved as a file named \fB~/Documents/\.minisign/minisign\.key\fR\. 121 | . 122 | .P 123 | Signing files 124 | . 125 | .P 126 | $ \fBminisign\fR \-Sm myfile\.txt $ \fBminisign\fR \-Sm myfile\.txt myfile2\.txt *\.c 127 | . 128 | .P 129 | Or to include a comment in the signature, that will be verified and displayed when verifying the file: 130 | . 131 | .P 132 | $ \fBminisign\fR \-Sm myfile\.txt \-t \'This comment will be signed as well\' 133 | . 134 | .P 135 | The secret key is loaded from \fB${MINISIGN_CONFIG_DIR}/minisign\.key\fR, \fB~/Documents/\.minisign/minisign\.key\fR, or its path can be explicitly set with the \fB\-s \fR command\-line switch\. 136 | . 137 | .P 138 | Verifying a file 139 | . 140 | .P 141 | $ \fBminisign\fR \-Vm myfile\.txt \-P 142 | . 143 | .P 144 | or 145 | . 146 | .P 147 | $ \fBminisign\fR \-Vm myfile\.txt \-p signature\.pub 148 | . 149 | .P 150 | This requires the signature \fBmyfile\.txt\.minisig\fR to be present in the same directory\. 151 | . 152 | .P 153 | The public key can either reside in a file (\fB\./minisign\.pub\fR by default) or be directly specified on the command line\. 154 | . 155 | .SH "Notes" 156 | Signature files include an untrusted comment line that can be freely modified, even after signature creation\. 157 | . 158 | .P 159 | They also include a second comment line, that cannot be modified without the secret key\. 160 | . 161 | .P 162 | Trusted comments can be used to add instructions or application\-specific metadata (intended file name, timestamps, resource identifiers, version numbers to prevent downgrade attacks)\. 163 | . 164 | .SH "AUTHOR" 165 | Frank Denis (github [at] pureftpd [dot] org) 166 | -------------------------------------------------------------------------------- /man/man1/paste.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1989, 1990, 1993 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" This code is derived from software contributed to Berkeley by 5 | .\" Adam S. Moskowitz and the Institute of Electrical and Electronics 6 | .\" Engineers, Inc. 7 | .\" 8 | .\" Redistribution and use in source and binary forms, with or without 9 | .\" modification, are permitted provided that the following conditions 10 | .\" are met: 11 | .\" 1. Redistributions of source code must retain the above copyright 12 | .\" notice, this list of conditions and the following disclaimer. 13 | .\" 2. Redistributions in binary form must reproduce the above copyright 14 | .\" notice, this list of conditions and the following disclaimer in the 15 | .\" documentation and/or other materials provided with the distribution. 16 | .\" 3. All advertising materials mentioning features or use of this software 17 | .\" must display the following acknowledgement: 18 | .\" This product includes software developed by the University of 19 | .\" California, Berkeley and its contributors. 20 | .\" 4. Neither the name of the University nor the names of its contributors 21 | .\" may be used to endorse or promote products derived from this software 22 | .\" without specific prior written permission. 23 | .\" 24 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 | .\" SUCH DAMAGE. 35 | .\" 36 | .\" @(#)paste.1 8.1 (Berkeley) 6/6/93 37 | .\" $FreeBSD: src/usr.bin/paste/paste.1,v 1.19 2005/01/18 13:43:52 ru Exp $ 38 | .\" 39 | .Dd June 25, 2004 40 | .Dt PASTE 1 41 | .Os 42 | .Sh NAME 43 | .Nm paste 44 | .Nd merge corresponding or subsequent lines of files 45 | .Sh SYNOPSIS 46 | .Nm 47 | .Op Fl s 48 | .Op Fl d Ar list 49 | .Ar 50 | .Sh DESCRIPTION 51 | The 52 | .Nm 53 | utility concatenates the corresponding lines of the given input files, 54 | replacing all but the last file's newline characters with a single tab 55 | character, and writes the resulting lines to standard output. 56 | If end-of-file is reached on an input file while other input files 57 | still contain data, the file is treated as if it were an endless source 58 | of empty lines. 59 | .Pp 60 | The options are as follows: 61 | .Bl -tag -width Fl 62 | .It Fl d Ar list 63 | Use one or more of the provided characters to replace the newline 64 | characters instead of the default tab. 65 | The characters in 66 | .Ar list 67 | are used circularly, i.e., when 68 | .Ar list 69 | is exhausted the first character from 70 | .Ar list 71 | is reused. 72 | This continues until a line from the last input file (in default operation) 73 | or the last line in each file (using the 74 | .Fl s 75 | option) is displayed, at which 76 | time 77 | .Nm 78 | begins selecting characters from the beginning of 79 | .Ar list 80 | again. 81 | .Pp 82 | The following special characters can also be used in list: 83 | .Pp 84 | .Bl -tag -width flag -compact 85 | .It Li \en 86 | newline character 87 | .It Li \et 88 | tab character 89 | .It Li \e\e 90 | backslash character 91 | .It Li \e0 92 | Empty string (not a null character). 93 | .El 94 | .Pp 95 | Any other character preceded by a backslash is equivalent to the 96 | character itself. 97 | .It Fl s 98 | Concatenate all of the lines of each separate input file in command line 99 | order. 100 | The newline character of every line except the last line in each input 101 | file is replaced with the tab character, unless otherwise specified by 102 | the 103 | .Fl d 104 | option. 105 | .El 106 | .Pp 107 | If 108 | .Sq Fl 109 | is specified for one or more of the input files, the standard 110 | input is used; standard input is read one line at a time, circularly, 111 | for each instance of 112 | .Sq Fl . 113 | .Sh EXIT STATUS 114 | .Ex -std 115 | .Sh EXAMPLES 116 | List the files in the current directory in three columns: 117 | .Pp 118 | .Dl "ls | paste - - -" 119 | .Pp 120 | Combine pairs of lines from a file into single lines: 121 | .Pp 122 | .Dl "paste -s -d '\et\en' myfile" 123 | .Pp 124 | Number the lines in a file, similar to 125 | .Xr nl 1 : 126 | .Pp 127 | .Dl "sed = myfile | paste -s -d '\et\en' - -" 128 | .Pp 129 | Create a colon-separated list of directories named 130 | .Pa bin , 131 | suitable 132 | for use in the 133 | .Ev PATH 134 | environment variable: 135 | .Pp 136 | .Dl "find / -name bin -type d | paste -s -d : -" 137 | .Sh SEE ALSO 138 | .Xr cut 1 , 139 | .Xr lam 1 140 | .Sh STANDARDS 141 | The 142 | .Nm 143 | utility is expected to be 144 | .St -p1003.2 145 | compatible. 146 | .Sh HISTORY 147 | A 148 | .Nm 149 | command appeared in 150 | .At 32v . 151 | -------------------------------------------------------------------------------- /man/man1/seq.1: -------------------------------------------------------------------------------- 1 | .\" $NetBSD: seq.1,v 1.6 2008/11/26 15:03:47 ginsbach Exp $ 2 | .\" 3 | .\" Copyright (c) 2005 The NetBSD Foundation, Inc. 4 | .\" All rights reserved. 5 | .\" 6 | .\" This code is derived from software contributed to The NetBSD Foundation 7 | .\" by Brian Ginsbach. 8 | .\" 9 | .\" Redistribution and use in source and binary forms, with or without 10 | .\" modification, are permitted provided that the following conditions 11 | .\" are met: 12 | .\" 1. Redistributions of source code must retain the above copyright 13 | .\" notice, this list of conditions and the following disclaimer. 14 | .\" 2. Redistributions in binary form must reproduce the above copyright 15 | .\" notice, this list of conditions and the following disclaimer in the 16 | .\" documentation and/or other materials provided with the distribution. 17 | .\" 18 | .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 19 | .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20 | .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22 | .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23 | .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 | .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 | .\" POSSIBILITY OF SUCH DAMAGE. 29 | .\" 30 | .\" $FreeBSD: src/usr.bin/seq/seq.1,v 1.1 2010/02/19 23:54:12 delphij Exp $ 31 | .\" 32 | .Dd February 19, 2010 33 | .Dt SEQ 1 34 | .Os 35 | .Sh NAME 36 | .Nm seq 37 | .Nd print sequences of numbers 38 | .Sh SYNOPSIS 39 | .Nm 40 | .Op Fl w 41 | .Op Fl f Ar format 42 | .Op Fl s Ar string 43 | .Op Fl t Ar string 44 | .Op Ar first Op Ar incr 45 | .Ar last 46 | .Sh DESCRIPTION 47 | The 48 | .Nm 49 | utility prints a sequence of numbers, one per line 50 | .Pq default , 51 | from 52 | .Ar first 53 | .Pq default 1 , 54 | to near 55 | .Ar last 56 | as possible, in increments of 57 | .Ar incr 58 | .Pq default 1 . 59 | When 60 | .Ar first 61 | is larger than 62 | .Ar last 63 | the default 64 | .Ar incr 65 | is -1. 66 | .Pp 67 | All numbers are interpreted as floating point. 68 | .Pp 69 | Normally integer values are printed as decimal integers. 70 | .Pp 71 | The 72 | .Nm 73 | utility accepts the following options: 74 | .Bl -tag -width Ar 75 | .It Fl f Ar format 76 | Use a 77 | .Xr printf 3 78 | style 79 | .Ar format 80 | to print each number. 81 | Only the 82 | .Cm E , 83 | .Cm e , 84 | .Cm f , 85 | .Cm G , 86 | .Cm g , 87 | and 88 | .Cm % 89 | conversion characters are valid, along with any optional 90 | flags and an optional numeric minimum field width or precision. 91 | The 92 | .Ar format 93 | can contain character escape sequences in backslash notation as 94 | defined in 95 | .St -ansiC . 96 | The default is 97 | .Cm %g . 98 | .It Fl s Ar string 99 | Use 100 | .Ar string 101 | to separate numbers. 102 | The 103 | .Ar string 104 | can contain character escape sequences in backslash notation as 105 | defined in 106 | .St -ansiC . 107 | The default is 108 | .Cm \en . 109 | .It Fl t Ar string 110 | Use 111 | .Ar string 112 | to terminate sequence of numbers. 113 | The 114 | .Ar string 115 | can contain character escape sequences in backslash notation as 116 | defined in 117 | .St -ansiC . 118 | This option is useful when the default separator 119 | does not contain a 120 | .Cm \en . 121 | .It Fl w 122 | Equalize the widths of all numbers by padding with zeros as necessary. 123 | This option has no effect with the 124 | .Fl f 125 | option. 126 | If any sequence numbers will be printed in exponential notation, 127 | the default conversion is changed to 128 | .Cm %e . 129 | .El 130 | .Pp 131 | The 132 | .Nm 133 | utility exits 0 on success and non-zero if an error occurs. 134 | .Sh EXAMPLES 135 | .Bd -literal -offset indent 136 | # seq 1 3 137 | 1 138 | 2 139 | 3 140 | 141 | # seq 3 1 142 | 3 143 | 2 144 | 1 145 | 146 | # seq -w 0 .05 .1 147 | 0.00 148 | 0.05 149 | 0.10 150 | .Ed 151 | .Sh SEE ALSO 152 | .Xr jot 1 , 153 | .Xr printf 1 , 154 | .Xr printf 3 155 | .Sh HISTORY 156 | The 157 | .Nm 158 | command first appeared in 159 | .Tn "Plan 9 from Bell Labs" . 160 | A 161 | .Nm 162 | command appeared in 163 | .Nx 3.0 , 164 | and ported to 165 | .Fx 9.0 . 166 | This command was based on the command of the same name in 167 | .Tn "Plan 9 from Bell Labs" 168 | and the 169 | .Tn GNU 170 | core utilities. 171 | The 172 | .Tn GNU 173 | .Nm 174 | command first appeared in the 1.13 shell utilities release. 175 | .Sh BUGS 176 | The 177 | .Fl w 178 | option does not handle the transition from pure floating point 179 | to exponent representation very well. 180 | The 181 | .Nm 182 | command is not bug for bug compatible with the 183 | .Tn "Plan 9 from Bell Labs" 184 | or 185 | .Tn GNU 186 | versions of 187 | .Nm . 188 | -------------------------------------------------------------------------------- /man/man1/split.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1990, 1991, 1993, 1994 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" Redistribution and use in source and binary forms, with or without 5 | .\" modification, are permitted provided that the following conditions 6 | .\" are met: 7 | .\" 1. Redistributions of source code must retain the above copyright 8 | .\" notice, this list of conditions and the following disclaimer. 9 | .\" 2. Redistributions in binary form must reproduce the above copyright 10 | .\" notice, this list of conditions and the following disclaimer in the 11 | .\" documentation and/or other materials provided with the distribution. 12 | .\" 3. All advertising materials mentioning features or use of this software 13 | .\" must display the following acknowledgement: 14 | .\" This product includes software developed by the University of 15 | .\" California, Berkeley and its contributors. 16 | .\" 4. Neither the name of the University nor the names of its contributors 17 | .\" may be used to endorse or promote products derived from this software 18 | .\" without specific prior written permission. 19 | .\" 20 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 | .\" SUCH DAMAGE. 31 | .\" 32 | .\" @(#)split.1 8.3 (Berkeley) 4/16/94 33 | .\" $FreeBSD: src/usr.bin/split/split.1,v 1.17 2005/08/30 12:48:28 tjr Exp $ 34 | .\" 35 | .Dd August 21, 2005 36 | .Dt SPLIT 1 37 | .Os 38 | .Sh NAME 39 | .Nm split 40 | .Nd split a file into pieces 41 | .Sh SYNOPSIS 42 | .Nm 43 | .Op Fl a Ar suffix_length 44 | .Op Fl b Ar byte_count[k|m] 45 | .Op Fl l Ar line_count 46 | .Op Fl p Ar pattern 47 | .Op Ar file Op Ar name 48 | .Sh DESCRIPTION 49 | The 50 | .Nm 51 | utility reads the given 52 | .Ar file 53 | and breaks it up into files of 1000 lines each. 54 | If 55 | .Ar file 56 | is a single dash 57 | .Pq Sq Fl 58 | or absent, 59 | .Nm 60 | reads from the standard input. 61 | .Pp 62 | The options are as follows: 63 | .Bl -tag -width Ds 64 | .It Fl a Ar suffix_length 65 | Use 66 | .Ar suffix_length 67 | letters to form the suffix of the file name. 68 | .It Fl b Ar byte_count[k|m] 69 | Create smaller files 70 | .Ar byte_count 71 | bytes in length. 72 | If 73 | .Dq Li k 74 | is appended to the number, the file is split into 75 | .Ar byte_count 76 | kilobyte pieces. 77 | If 78 | .Dq Li m 79 | is appended to the number, the file is split into 80 | .Ar byte_count 81 | megabyte pieces. 82 | .It Fl l Ar line_count 83 | Create smaller files 84 | .Ar n 85 | lines in length. 86 | .It Fl p Ar pattern 87 | The file is split whenever an input line matches 88 | .Ar pattern , 89 | which is interpreted as an extended regular expression. 90 | The matching line will be the first line of the next output file. 91 | This option is incompatible with the 92 | .Fl b 93 | and 94 | .Fl l 95 | options. 96 | .El 97 | .Pp 98 | If additional arguments are specified, the first is used as the name 99 | of the input file which is to be split. 100 | If a second additional argument is specified, it is used as a prefix 101 | for the names of the files into which the file is split. 102 | In this case, each file into which the file is split is named by the 103 | prefix followed by a lexically ordered suffix using 104 | .Ar suffix_length 105 | characters in the range 106 | .Dq Li a-z . 107 | If 108 | .Fl a 109 | is not specified, two letters are used as the suffix. 110 | .Pp 111 | If the 112 | .Ar name 113 | argument is not specified, the file is split into lexically ordered 114 | files named with the prefix 115 | .Dq Li x 116 | and with suffixes as above. 117 | .Sh ENVIRONMENT 118 | The 119 | .Ev LANG , LC_ALL , LC_CTYPE 120 | and 121 | .Ev LC_COLLATE 122 | environment variables affect the execution of 123 | .Nm 124 | as described in 125 | .Xr environ 7 . 126 | .Sh EXIT STATUS 127 | .Ex -std 128 | .Sh SEE ALSO 129 | .Xr csplit 1 , 130 | .Xr re_format 7 131 | .Sh STANDARDS 132 | The 133 | .Nm 134 | utility conforms to 135 | .St -p1003.1-2001 . 136 | .Sh HISTORY 137 | A 138 | .Nm 139 | command appeared in 140 | .At v3 . 141 | .Sh BUGS 142 | The maximum line length for matching patterns is 65536. 143 | -------------------------------------------------------------------------------- /man/man1/unexpand.1: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1980, 1990, 1993 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" Redistribution and use in source and binary forms, with or without 5 | .\" modification, are permitted provided that the following conditions 6 | .\" are met: 7 | .\" 1. Redistributions of source code must retain the above copyright 8 | .\" notice, this list of conditions and the following disclaimer. 9 | .\" 2. Redistributions in binary form must reproduce the above copyright 10 | .\" notice, this list of conditions and the following disclaimer in the 11 | .\" documentation and/or other materials provided with the distribution. 12 | .\" 3. All advertising materials mentioning features or use of this software 13 | .\" must display the following acknowledgement: 14 | .\" This product includes software developed by the University of 15 | .\" California, Berkeley and its contributors. 16 | .\" 4. Neither the name of the University nor the names of its contributors 17 | .\" may be used to endorse or promote products derived from this software 18 | .\" without specific prior written permission. 19 | .\" 20 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 | .\" SUCH DAMAGE. 31 | .\" 32 | .\" @(#)expand.1 8.1 (Berkeley) 6/9/93 33 | .\" $FreeBSD: src/usr.bin/expand/expand.1,v 1.15 2006/10/13 16:22:24 ru Exp $ 34 | .\" 35 | .Dd October 13, 2006 36 | .Dt EXPAND 1 37 | .Os 38 | .Sh NAME 39 | .Nm expand , 40 | .Nm unexpand 41 | .Nd expand tabs to spaces, and vice versa 42 | .Sh SYNOPSIS 43 | .Nm 44 | .Oo 45 | .Fl t 46 | .Sm off 47 | .Ar tab1 , tab2 , ... , tabn 48 | .Sm on 49 | .Oc 50 | .Op Ar 51 | .Nm unexpand 52 | .Oo 53 | .Fl a | t 54 | .Sm off 55 | .Ar tab1 , tab2 , ... , tabn 56 | .Sm on 57 | .Oc 58 | .Op Ar 59 | .Sh DESCRIPTION 60 | The 61 | .Nm 62 | utility processes the named files or the standard input writing 63 | the standard output with tabs changed into blanks. 64 | Backspace characters are preserved into the output and decrement 65 | the column count for tab calculations. 66 | The 67 | .Nm 68 | utility is useful for pre-processing character files 69 | (before sorting, looking at specific columns, etc.) that 70 | contain tabs. 71 | .Pp 72 | The 73 | .Nm unexpand 74 | utility puts tabs back into the data from the standard input or the named 75 | files and writes the result on the standard output. 76 | .Pp 77 | The following options are available: 78 | .Bl -tag -width indent 79 | .It Fl a 80 | .Nm ( unexpand 81 | only.) 82 | By default, only leading blanks and tabs 83 | are reconverted to maximal strings of tabs. 84 | If the 85 | .Fl a 86 | option is given, then tabs are inserted whenever they would compress the 87 | resultant file by replacing two or more characters. 88 | .It Fl t Sm Ar tab1 , tab2 , ... , tabn Sm 89 | Set tab stops at column positions 90 | .Ar tab1 , tab2 , ... , tabn . 91 | If only a single number is given, tab stops are set that number of 92 | column positions apart instead of the default number of 8. 93 | .El 94 | .Sh ENVIRONMENT 95 | The 96 | .Ev LANG , LC_ALL 97 | and 98 | .Ev LC_CTYPE 99 | environment variables affect the execution of 100 | .Nm 101 | and 102 | .Nm unexpand 103 | as described in 104 | .Xr environ 7 . 105 | .Sh EXIT STATUS 106 | .Ex -std expand unexpand 107 | .Sh STANDARDS 108 | The 109 | .Nm 110 | and 111 | .Nm unexpand 112 | utilities conform to 113 | .St -p1003.1-2001 . 114 | .Sh HISTORY 115 | The 116 | .Nm 117 | command appeared in 118 | .Bx 3.0 . 119 | -------------------------------------------------------------------------------- /man/man1/which.1: -------------------------------------------------------------------------------- 1 | .\" Manpage Copyright (c) 1995, Jordan Hubbard 2 | .\" 3 | .\" Redistribution and use in source and binary forms, with or without 4 | .\" modification, are permitted provided that the following conditions 5 | .\" are met: 6 | .\" 1. Redistributions of source code must retain the above copyright 7 | .\" notice, this list of conditions and the following disclaimer. 8 | .\" 2. Redistributions in binary form must reproduce the above copyright 9 | .\" notice, this list of conditions and the following disclaimer in the 10 | .\" documentation and/or other materials provided with the distribution. 11 | .\" 3. All advertising materials mentioning features or use of this software 12 | .\" must display the following acknowledgement: 13 | .\" This product includes software developed by the FreeBSD Project 14 | .\" its contributors. 15 | .\" 4. Neither the name of the FreeBSD Project nor the names of its contributors 16 | .\" may be used to endorse or promote products derived from this software 17 | .\" without specific prior written permission. 18 | .\" 19 | .\" THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTOR ``AS IS'' AND ANY EXPRESS OR 20 | .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | .\" IN NO EVENT SHALL THE CONTRIBUTOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | .\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | .\" 30 | .\" $FreeBSD: head/usr.bin/which/which.1 267773 2014-06-23 08:23:05Z bapt $ 31 | .\" 32 | .Dd December 13, 2006 33 | .Dt WHICH 1 34 | .Os 35 | .Sh NAME 36 | .Nm which 37 | .Nd "locate a program file in the user's path" 38 | .Sh SYNOPSIS 39 | .Nm 40 | .Op Fl as 41 | .Ar program ... 42 | .Sh DESCRIPTION 43 | The 44 | .Nm 45 | utility 46 | takes a list of command names and searches the path for each executable 47 | file that would be run had these commands actually been invoked. 48 | .Pp 49 | The following options are available: 50 | .Bl -tag -width indent 51 | .It Fl a 52 | List all instances of executables found (instead of just the first one 53 | of each). 54 | .It Fl s 55 | No output, just return 0 if all of the executables are found, or 1 if 56 | some were not found. 57 | .El 58 | .Pp 59 | Some shells may provide a builtin 60 | .Nm 61 | command which is similar or identical to this utility. 62 | Consult the 63 | .Xr builtin 1 64 | manual page. 65 | .Sh SEE ALSO 66 | .Xr builtin 1 , 67 | .Xr csh 1 , 68 | .Xr find 1 , 69 | .Xr locate 1 , 70 | .Xr whereis 1 71 | .Sh HISTORY 72 | The 73 | .Nm 74 | command first appeared in 75 | .Fx 2.1 . 76 | .Sh AUTHORS 77 | .An -nosplit 78 | The 79 | .Nm 80 | utility was originally written in Perl and was contributed by 81 | .An Wolfram Schneider Aq Mt wosch@FreeBSD.org . 82 | The current version of 83 | .Nm 84 | was rewritten in C by 85 | .An Daniel Papasian Aq Mt dpapasia@andrew.cmu.edu . 86 | -------------------------------------------------------------------------------- /man/man1/xzdec.1: -------------------------------------------------------------------------------- 1 | .\" 2 | .\" Author: Lasse Collin 3 | .\" 4 | .\" This file has been put into the public domain. 5 | .\" You can do whatever you want with this file. 6 | .\" 7 | .TH XZDEC 1 "2017-04-19" "Tukaani" "XZ Utils" 8 | .SH NAME 9 | xzdec, lzmadec \- Small .xz and .lzma decompressors 10 | .SH SYNOPSIS 11 | .B xzdec 12 | .RI [ option... ] 13 | .RI [ file... ] 14 | .br 15 | .B lzmadec 16 | .RI [ option... ] 17 | .RI [ file... ] 18 | .SH DESCRIPTION 19 | .B xzdec 20 | is a liblzma-based decompression-only tool for 21 | .B .xz 22 | (and only 23 | .BR .xz ) 24 | files. 25 | .B xzdec 26 | is intended to work as a drop-in replacement for 27 | .BR xz (1) 28 | in the most common situations where a script 29 | has been written to use 30 | .B "xz \-\-decompress \-\-stdout" 31 | (and possibly a few other commonly used options) to decompress 32 | .B .xz 33 | files. 34 | .B lzmadec 35 | is identical to 36 | .B xzdec 37 | except that 38 | .B lzmadec 39 | supports 40 | .B .lzma 41 | files instead of 42 | .B .xz 43 | files. 44 | .PP 45 | To reduce the size of the executable, 46 | .B xzdec 47 | doesn't support multithreading or localization, 48 | and doesn't read options from 49 | .B XZ_DEFAULTS 50 | and 51 | .B XZ_OPT 52 | environment variables. 53 | .B xzdec 54 | doesn't support displaying intermediate progress information: sending 55 | .B SIGINFO 56 | to 57 | .B xzdec 58 | does nothing, but sending 59 | .B SIGUSR1 60 | terminates the process instead of displaying progress information. 61 | .SH OPTIONS 62 | .TP 63 | .BR \-d ", " \-\-decompress ", " \-\-uncompress 64 | Ignored for 65 | .BR xz (1) 66 | compatibility. 67 | .B xzdec 68 | supports only decompression. 69 | .TP 70 | .BR \-k ", " \-\-keep 71 | Ignored for 72 | .BR xz (1) 73 | compatibility. 74 | .B xzdec 75 | never creates or removes any files. 76 | .TP 77 | .BR \-c ", " \-\-stdout ", " \-\-to-stdout 78 | Ignored for 79 | .BR xz (1) 80 | compatibility. 81 | .B xzdec 82 | always writes the decompressed data to standard output. 83 | .TP 84 | .BR \-q ", " \-\-quiet 85 | Specifying this once does nothing since 86 | .B xzdec 87 | never displays any warnings or notices. 88 | Specify this twice to suppress errors. 89 | .TP 90 | .BR \-Q ", " \-\-no-warn 91 | Ignored for 92 | .BR xz (1) 93 | compatibility. 94 | .B xzdec 95 | never uses the exit status 2. 96 | .TP 97 | .BR \-h ", " \-\-help 98 | Display a help message and exit successfully. 99 | .TP 100 | .BR \-V ", " \-\-version 101 | Display the version number of 102 | .B xzdec 103 | and liblzma. 104 | .SH "EXIT STATUS" 105 | .TP 106 | .B 0 107 | All was good. 108 | .TP 109 | .B 1 110 | An error occurred. 111 | .PP 112 | .B xzdec 113 | doesn't have any warning messages like 114 | .BR xz (1) 115 | has, thus the exit status 2 is not used by 116 | .BR xzdec . 117 | .SH NOTES 118 | Use 119 | .BR xz (1) 120 | instead of 121 | .B xzdec 122 | or 123 | .B lzmadec 124 | for normal everyday use. 125 | .B xzdec 126 | or 127 | .B lzmadec 128 | are meant only for situations where it is important to have 129 | a smaller decompressor than the full-featured 130 | .BR xz (1). 131 | .PP 132 | .B xzdec 133 | and 134 | .B lzmadec 135 | are not really that small. 136 | The size can be reduced further by dropping 137 | features from liblzma at compile time, 138 | but that shouldn't usually be done for executables distributed 139 | in typical non-embedded operating system distributions. 140 | If you need a truly small 141 | .B .xz 142 | decompressor, consider using XZ Embedded. 143 | .SH "SEE ALSO" 144 | .BR xz (1) 145 | .PP 146 | XZ Embedded: 147 | -------------------------------------------------------------------------------- /man/man1/zipcloak.1: -------------------------------------------------------------------------------- 1 | .TH zipcloak 1 "v3.0 of 8 May 2008" 2 | .SH NAME 3 | zipcloak \- encrypt entries in a zipfile 4 | 5 | .SH SYNOPSIS 6 | .I zipcloak 7 | .RB [ \-d ] 8 | .RB [ \-b\ path ] 9 | .RB [ \-h ] 10 | .RB [ \-v ] 11 | .RB [ \-L ] 12 | zipfile 13 | 14 | .SH ARGUMENTS 15 | .in +13 16 | .ti -13 17 | zipfile Zipfile to encrypt entries in 18 | 19 | .SH OPTIONS 20 | .TP 21 | .PD 0 22 | .B \-b\ \fPpath 23 | .TP 24 | .PD 25 | .B \-\-temp\-path \fPpath 26 | Use the directory given by path for the temporary zip file. 27 | 28 | .TP 29 | .PD 0 30 | .B \-d 31 | .TP 32 | .PD 33 | .B \-\-decrypt 34 | Decrypt encrypted entries (copy if given wrong password). 35 | 36 | .TP 37 | .PD 0 38 | .B \-h 39 | .TP 40 | .PD 41 | .B \-\-help\ 42 | Show a short help. 43 | 44 | .TP 45 | .PD 0 46 | .B \-L 47 | .TP 48 | .PD 49 | .B \-\-license 50 | Show software license. 51 | 52 | .TP 53 | .PD 0 54 | .B \-O\ \fPpath 55 | .TP 56 | .PD 57 | .B \-\-output\-file\ \fPzipfile 58 | Write output to new archive zipfile, leaving original archive as is. 59 | 60 | .TP 61 | .PD 0 62 | .B \-q 63 | .TP 64 | .PD 65 | .B \-\-quiet 66 | Quiet operation. Suppresses some informational messages. 67 | 68 | .TP 69 | .PD 0 70 | .B \-v 71 | .TP 72 | .PD 73 | .B \-\-version 74 | Show version information. 75 | 76 | .SH DESCRIPTION 77 | .I zipcloak 78 | encrypts all unencrypted entries in the zipfile. This is the default action. 79 | 80 | .TP 81 | The \-d option is used to decrypt encrypted entries in the zipfile. 82 | 83 | .TP 84 | \fIzipcloak \fBuses original zip encryption which is considered weak. 85 | 86 | .TP 87 | Note: 88 | The encryption code of this program is not copyrighted and is put in 89 | the public domain. It was originally written in Europe and can be freely 90 | distributed from any country including the U.S.A. (Previously if this 91 | program was imported into the U.S.A, it could not be re-exported from 92 | the U.S.A to another country.) See the file README.CR included in the 93 | source distribution for more on this. Otherwise, the Info-ZIP license 94 | applies. 95 | 96 | .SH EXAMPLES 97 | To be added. 98 | 99 | .SH BUGS 100 | Large files (> 2 GB) and large archives not yet supported. 101 | 102 | Split archives not yet supported. A work around is to convert the 103 | split archive to a single-file archive using \fIzip\fP and then 104 | use \fIzipcloak\fP on the single-file archive. If needed, the 105 | resulting archive can then be split again using \fIzip\fP. 106 | 107 | 108 | .SH SEE ALSO 109 | zip(1), unzip(1) 110 | .SH AUTHOR 111 | Info-ZIP 112 | -------------------------------------------------------------------------------- /man/man1/zipnote.1: -------------------------------------------------------------------------------- 1 | .TH zipnote 1 "v3.0 of 8 May 2008" 2 | .SH NAME 3 | zipnote \- write the comments in zipfile to stdout, edit comments and rename files in zipfile 4 | 5 | .SH SYNOPSIS 6 | .I zipnote 7 | .RB [ \-w ] 8 | .RB [ \-b\ path ] 9 | .RB [ \-h ] 10 | .RB [ \-v ] 11 | .RB [ \-L ] 12 | zipfile 13 | 14 | .SH ARGUMENTS 15 | .in +13 16 | .ti -13 17 | zipfile Zipfile to read comments from or edit. 18 | 19 | .SH OPTIONS 20 | .TP 21 | .BI \-w 22 | Write comments to a zipfile from stdin (see below). 23 | .TP 24 | .BI \-b\ \fRpath 25 | Use path for the temporary zip file. 26 | .TP 27 | .BI \-h 28 | Show a short help. 29 | .TP 30 | .BI \-v 31 | Show version information. 32 | .TP 33 | .BI \-L 34 | Show software license. 35 | 36 | .SH DESCRIPTION 37 | .I zipnote 38 | writes the comments in a zipfile to stdout. This is the default mode. A second mode 39 | allows updating the comments in a zipfile as well as allows changing the names 40 | of the files in the zipfile. These modes are described below. 41 | 42 | .SH EXAMPLES 43 | To write all comments in a zipfile to stdout use for example 44 | .LP 45 | .nf 46 | zipnote foo.zip > foo.tmp 47 | .fi 48 | .LP 49 | This writes all comments in the zipfile 50 | .I foo.zip 51 | to the file 52 | .I foo.tmp 53 | in a specific format. 54 | 55 | .LP 56 | If desired, this file can then be edited to change the comments and then used 57 | to update the zipfile. 58 | .LP 59 | .nf 60 | zipnote -w foo.zip < foo.tmp 61 | .fi 62 | .LP 63 | The names of the files in the zipfile can also be changed in this way. This is done by 64 | following lines like 65 | .nf 66 | "@ name" 67 | .fi 68 | in the created temporary file (called 69 | .I foo.tmp 70 | here) with lines like 71 | .nf 72 | "@=newname" 73 | .fi 74 | and then using the -w option as above. 75 | 76 | .SH BUGS 77 | The temporary file format is rather specific and zipnote is rather picky about it. 78 | It should be easier to change file names in a script. 79 | 80 | Does not yet support large (> 2 GB) or split archives. 81 | 82 | .SH SEE ALSO 83 | zip(1), unzip(1) 84 | .SH AUTHOR 85 | Info-ZIP 86 | -------------------------------------------------------------------------------- /man/man1/zipsplit.1: -------------------------------------------------------------------------------- 1 | .TH zipnote 1 "v3.0 of 8 May 2008" 2 | .SH NAME 3 | zipsplit \- split a zipfile into smaller zipfiles 4 | 5 | .SH SYNOPSIS 6 | .I zipsplit 7 | .RB [ \-t ] 8 | .RB [ \-i ] 9 | .RB [ \-p ] 10 | .RB [ \-s ] 11 | .RB [ \-n\ size ] 12 | .RB [ \-r\ room ] 13 | .RB [ \-b\ path ] 14 | .RB [ \-h ] 15 | .RB [ \-v ] 16 | .RB [ \-L ] 17 | zipfile 18 | 19 | .SH ARGUMENTS 20 | .in +13 21 | .ti -13 22 | zipfile Zipfile to split. 23 | 24 | .SH OPTIONS 25 | .TP 26 | .BI \-t 27 | Report how many files it will take, but don't make them. 28 | .TP 29 | .BI \-i 30 | Make index (zipsplit.idx) and count its size against first zip file. 31 | .TP 32 | .BI \-n\ \fRsize 33 | Make zip files no larger than "size" (default = 36000). 34 | .TP 35 | .BI \-r\ \fRroom 36 | Leave room for "room" bytes on the first disk (default = 0). 37 | .TP 38 | .BI \-b\ \fRpath 39 | Use path for the output zip files. 40 | .TP 41 | .BI \-p 42 | Pause between output zip files. 43 | .TP 44 | .BI \-s 45 | Do a sequential split even if it takes more zip files. 46 | .TP 47 | .BI \-h 48 | Show a short help. 49 | .TP 50 | .BI \-v 51 | Show version information. 52 | .TP 53 | .BI \-L 54 | Show software license. 55 | 56 | .SH DESCRIPTION 57 | .I zipsplit 58 | reads a zipfile and splits it into smaller zipfiles. 59 | 60 | .SH EXAMPLES 61 | To be filled in. 62 | 63 | .SH BUGS 64 | Does not yet support large (> 2 GB) or split archives. 65 | 66 | .SH SEE ALSO 67 | zip(1), unzip(1) 68 | .SH AUTHOR 69 | Info-ZIP 70 | -------------------------------------------------------------------------------- /man/man6/banner.6: -------------------------------------------------------------------------------- 1 | .\" Copyright (c) 1980, 1993, 1995 2 | .\" The Regents of the University of California. All rights reserved. 3 | .\" 4 | .\" Redistribution and use in source and binary forms, with or without 5 | .\" modification, are permitted provided that the following conditions 6 | .\" are met: 7 | .\" 1. Redistributions of source code must retain the above copyright 8 | .\" notice, this list of conditions and the following disclaimer. 9 | .\" 2. Redistributions in binary form must reproduce the above copyright 10 | .\" notice, this list of conditions and the following disclaimer in the 11 | .\" documentation and/or other materials provided with the distribution. 12 | .\" 3. All advertising materials mentioning features or use of this software 13 | .\" must display the following acknowledgement: 14 | .\" This product includes software developed by the University of 15 | .\" California, Berkeley and its contributors. 16 | .\" 4. Neither the name of the University nor the names of its contributors 17 | .\" may be used to endorse or promote products derived from this software 18 | .\" without specific prior written permission. 19 | .\" 20 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 | .\" SUCH DAMAGE. 31 | .\" 32 | .\" From: @(#)banner.6 8.2 (Berkeley) 4/29/95 33 | .\" $FreeBSD: src/usr.bin/banner/banner.6,v 1.9 2005/01/25 22:24:04 tjr Exp $ 34 | .\" 35 | .Dd January 26, 2005 36 | .Dt BANNER 6 37 | .Os 38 | .Sh NAME 39 | .Nm banner 40 | .Nd print large banner on printer 41 | .Sh SYNOPSIS 42 | .Nm 43 | .Op Fl d 44 | .Op Fl t 45 | .Op Fl w Ar width 46 | .Ar message ... 47 | .Sh DESCRIPTION 48 | .Nm Banner 49 | prints a large, high quality banner on the standard output. 50 | If the message is omitted, it prompts for and reads one line of its 51 | standard input. 52 | .Pp 53 | The output should be printed on paper of the appropriate width, 54 | with no breaks between the pages. 55 | .Pp 56 | The following options are available: 57 | .Bl -tag -width indent 58 | .It Fl d 59 | Enable debug. 60 | .It Fl t 61 | Enable trace. 62 | .It Fl w Ar width 63 | Change the output from a width of 132 to 64 | .Ar width , 65 | suitable for a narrow terminal. 66 | .El 67 | .Sh AUTHORS 68 | .An Mark Horton 69 | .Sh BUGS 70 | Several 71 | .Tn ASCII 72 | characters are not defined, notably <, >, [, ], \\, 73 | ^, _, {, }, |, and ~. 74 | Also, the characters ", ', and & are funny looking (but in a useful way.) 75 | .Pp 76 | The 77 | .Fl w 78 | option is implemented by skipping some rows and columns. 79 | The smaller it gets, the grainier the output. 80 | Sometimes it runs letters together. 81 | .Pp 82 | Messages are limited to 1024 characters in length. 83 | -------------------------------------------------------------------------------- /packages/ace-editor: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # install file for mmd6 auxiliary files: 3 | 4 | packagename=${0##*/} 5 | 6 | # download archive: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/ace-editor.tar.gz -o ~/tmp/ace-editor.tar.gz --create-dirs --silent 8 | 9 | mkdir -p ~/Library/node_modules 10 | cd ~/Library/node_modules 11 | tar -xzf ~/tmp/ace-editor.tar.gz 12 | mkdir -p ~/Documents/bin 13 | mv ace-editor.sh ~/Documents/bin/ 14 | chmod +x ~/Documents/bin/ace-editor.sh 15 | cd - 16 | 17 | rm ~/tmp/ace-editor.tar.gz 18 | 19 | # download uninstall information: 20 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 21 | 22 | -------------------------------------------------------------------------------- /packages/age: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # download command: 3 | echo Downloading age and age-keygen 4 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/age.wasm3 -o ~/Documents/bin/age.wasm3 --create-dirs --silent 5 | chmod +x ~/Documents/bin/age.wasm3 6 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/age-keygen.wasm3 -o ~/Documents/bin/age-keygen.wasm3 --create-dirs --silent 7 | chmod +x ~/Documents/bin/age-keygen.wasm3 8 | # download man page 9 | echo Downloading man pages 10 | curl -l https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/age.1 -o ~/Library/man/man1/age.1 --create-dirs --silent 11 | curl -l https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/age-keygen.1 -o ~/Library/man/man1/age-keygen.1 --create-dirs --silent 12 | # refresh man database 13 | mandocdb ~/Library/man 14 | # download uninstall information: 15 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/age -o ~/Documents/.pkg/age --create-dirs --silent 16 | -------------------------------------------------------------------------------- /packages/banner: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename.wasm3 --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename.wasm3 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man6/$packagename.6 -o ~/Library/man/man6/$packagename.6 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/base64: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # download command: 3 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/base64 -o ~/Documents/bin/base64 --create-dirs --silent 4 | chmod +x ~/Documents/bin/base64 5 | # download man page 6 | # refresh man database 7 | # download uninstall information: 8 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/base64 -o ~/Documents/.pkg/base64 --create-dirs --silent 9 | -------------------------------------------------------------------------------- /packages/basename: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/cal: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/checkbashisms: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # install script for checkbashisms 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/HeavySnowJakarta/a-Shell-commands/releases/download/checkbashisms-v2.24.1/checkbashisms -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent -------------------------------------------------------------------------------- /packages/codemirror: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # install file for mmd6 auxiliary files: 3 | 4 | packagename=${0##*/} 5 | 6 | # download archive: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/codemirror.tar.gz -o ~/tmp/codemirror.tar.gz --create-dirs --silent 8 | 9 | mkdir -p ~/Library/node_modules 10 | cd ~/Library/node_modules 11 | tar -xzf ~/tmp/codemirror.tar.gz --strip-components 1 12 | mkdir -p ~/Documents/bin 13 | mv codemirror.sh ~/Documents/bin/ 14 | chmod +x ~/Documents/bin/codemirror.sh 15 | # version 1.15 of a-Shell requires these to be in ~/Library. 16 | # This change is compatible with version 1.14 17 | mv codemirror.html ~/Library 18 | mv codemirror.js ~/Library 19 | cd - 20 | 21 | rm ~/tmp/codemirror.tar.gz 22 | 23 | # download uninstall information: 24 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 25 | 26 | -------------------------------------------------------------------------------- /packages/col: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/colrm: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/column: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/comm: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/csplit: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/cut: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/dirname: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/expand: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/expr: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/f2c: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # download command: 3 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/f2c -o ~/Documents/bin/f2c --create-dirs --silent 4 | chmod +x ~/Documents/bin/f2c 5 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/libf2c.a -o ~/Library/usr/lib/wasm32-wasi/libf2c.a --create-dirs --silent 6 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/f2c.h -o ~/Library/usr/include/wasm32-wasi/f2c.h --create-dirs --silent 7 | # copy for the other wasm32 versions: 8 | cp ~/Library/usr/include/wasm32-wasi/f2c.h ~/Library/usr/include/wasm32-wasip1 9 | cp ~/Library/usr/include/wasm32-wasi/f2c.h ~/Library/usr/include/wasm32-wasip1-threads 10 | cp ~/Library/usr/include/wasm32-wasi/f2c.h ~/Library/usr/include/wasm32-wasi-threads 11 | cp ~/Library/usr/lib/wasm32-wasi/libf2c.a ~/Library/usr/lib/wasm32-wasip1 12 | cp ~/Library/usr/lib/wasm32-wasi/libf2c.a ~/Library/usr/lib/wasm32-wasip1-threads 13 | cp ~/Library/usr/lib/wasm32-wasi/libf2c.a ~/Library/usr/lib/wasm32-wasi-threads 14 | # download man page 15 | curl -l https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/f2c.1 -o ~/Library/man/man1/f2c.1 --create-dirs --silent 16 | # refresh man database 17 | mandocdb ~/Library/man 18 | # download uninstall information: 19 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/f2c -o ~/Documents/.pkg/f2c --create-dirs --silent 20 | -------------------------------------------------------------------------------- /packages/false: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/fmt: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/fold: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/gawk: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/getopt: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/git: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | wrapper_script_contents () { 4 | cat << 'EOF' 5 | #!/bin/sh 6 | lg2 "$@" 7 | EOF 8 | } 9 | 10 | cat << EOF 11 | The git command cannot be included with 12 | a-Shell. Would you like to create a 13 | script at \$HOME/Documents/bin/git that 14 | wraps lg2 with the following contents? 15 | 16 | $(wrapper_script_contents) 17 | 18 | Keep in mind that git and lg2 options 19 | are not 100% compatible, and they also 20 | do not use the same configuration files 21 | or environment variables. 22 | 23 | EOF 24 | 25 | printf 'Create $HOME/Documents/bin/git? (y/n [n]) ' 26 | 27 | read -r create_wrapper 28 | 29 | echo 30 | 31 | if [ "$create_wrapper" != y ] && [ "$create_wrapper" != Y ]; then 32 | echo 'Exiting without creating wrapper.' 33 | exit 34 | fi 35 | 36 | if [ ! -d "$HOME/Documents/bin" ]; then 37 | echo 'The $HOME/Documents/bin directory does not exist.' 38 | echo 'Creating it first.' 39 | mkdir -p $HOME/Documents/bin 40 | fi 41 | 42 | if [ -f "$HOME/Documents/bin/git" ]; then 43 | echo 'The file ~/Documents/bin/git already exists.' 44 | echo 'Exiting without creating wrapper.' 45 | exit 1 46 | fi 47 | 48 | echo 'Creating $HOME/Documents/bin/git' 49 | 50 | if ! wrapper_script_contents > "$HOME/Documents/bin/git"; then 51 | echo 52 | echo 'Creation failed.' 53 | exit 1 54 | fi 55 | 56 | # uninstall information 57 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/git -o ~/Documents/.pkg/git --create-dirs --silent 58 | echo 'Creation complete' 59 | -------------------------------------------------------------------------------- /packages/gnu-pw-mgr: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | 10 | # download the other command: 11 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/sort-pw-cfg -o ~/Documents/bin/sort-pw-cfg --create-dirs --silent 12 | chmod +x ~/Documents/bin/sort-pw-cfg 13 | 14 | # download man page: no man pages 15 | 16 | # download uninstall information: 17 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 18 | -------------------------------------------------------------------------------- /packages/gperf: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | 16 | -------------------------------------------------------------------------------- /packages/graphviz: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download archive: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename.tar.gz -o ~/tmp/$packagename.tar.gz --create-dirs --silent 8 | cd ~/tmp 9 | tar -xzf ~/tmp/$packagename.tar.gz 10 | mkdir -p ~/Documents/bin 11 | mv graphviz_install/bin/* ~/Documents/bin 12 | mkdir -p ~/Library/man/man1 13 | mkdir -p ~/Library/man/man7 14 | mv graphviz_install/man/man1/* ~/Library/man/man1/ 15 | mv graphviz_install/man/man7/* ~/Library/man/man7/ 16 | rm -rf graphviz_install 17 | 18 | # refresh man database 19 | mandocdb ~/Library/man 20 | # download uninstall information: 21 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 22 | -------------------------------------------------------------------------------- /packages/hexdump: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # 2 extra commands: 10 | cp ~/Documents/bin/$packagename ~/Documents/bin/od 11 | cp ~/Documents/bin/$packagename ~/Documents/bin/hd 12 | # download man page 13 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/od.1 -o ~/Library/man/man1/od.1 --create-dirs --silent 15 | # refresh man database 16 | mandocdb ~/Library/man 17 | # download uninstall information: 18 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 19 | -------------------------------------------------------------------------------- /packages/imgcat: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | #requirement: 5 | if [ ! -r $APPDIR/bin/base64 ]; then 6 | pkg install base64 7 | fi 8 | 9 | packagename=${0##*/} 10 | 11 | # download command: 12 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 13 | chmod +x ~/Documents/bin/$packagename 14 | # download uninstall information: 15 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 16 | -------------------------------------------------------------------------------- /packages/join: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/jot: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/json2csv: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # download command: 3 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/json2csv -o ~/Documents/bin/json2csv --create-dirs --silent 4 | chmod +x ~/Documents/bin/json2csv 5 | # download man page 6 | # refresh man database 7 | # download uninstall information: 8 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/json2csv -o ~/Documents/.pkg/json2csv --create-dirs --silent 9 | -------------------------------------------------------------------------------- /packages/lam: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/llvm: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # install file for LLVM/clang auxiliary files: 3 | 4 | packagename=${0##*/} 5 | 6 | # download archive: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/llvm.tar.gz -o ~/tmp/llvm.tar.gz --create-dirs --silent 8 | 9 | cd ~/Library/ 10 | tar -xzf ~/tmp/llvm.tar.gz 11 | cd - 12 | 13 | rm ~/tmp/llvm.tar.gz 14 | # update commands list: 15 | updateCommands 16 | 17 | # download uninstall information: 18 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 19 | 20 | -------------------------------------------------------------------------------- /packages/llvm-18: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # install file for LLVM/clang auxiliary files: 3 | 4 | packagename=${0##*/} 5 | 6 | # download archive: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/llvm-18.tar.gz -o ~/tmp/llvm.tar.gz --create-dirs --silent 8 | 9 | cd ~/Library/ 10 | tar -xzf ~/tmp/llvm.tar.gz 11 | cd - 12 | 13 | rm ~/tmp/llvm.tar.gz 14 | # update commands list: 15 | updateCommands 16 | 17 | # download uninstall information: 18 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 19 | 20 | -------------------------------------------------------------------------------- /packages/look: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages + auxiliary file 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download dictionary: 10 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/words -o ~/Library/share/dict/words --create-dirs --silent 11 | 12 | # download man page 13 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 14 | # refresh man database 15 | mandocdb ~/Library/man 16 | # download uninstall information: 17 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 18 | -------------------------------------------------------------------------------- /packages/lzmadec: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # download command: 3 | echo Downloading commands 4 | rm -f ~/Documents/bin/lzmadec.wasm 5 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/lzmadec.wasm -o ~/Documents/bin/lzmadec.wasm3 --create-dirs --silent 6 | chmod +x ~/Documents/bin/lzmadec.wasm3 7 | rm -f ~/Documents/bin/lzmainfo.wasm 8 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/lzmainfo.wasm -o ~/Documents/bin/lzmainfo.wasm3 --create-dirs --silent 9 | chmod +x ~/Documents/bin/lzmainfo.wasm3 10 | # download man page 11 | echo Downloading man pages 12 | curl -l https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/lzmadec.1 -o ~/Library/man/man1/lzmadec.1 --create-dirs --silent 13 | curl -l https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/lzmainfo.1 -o ~/Library/man/man1/lzmainfo.1 --create-dirs --silent 14 | # refresh man database 15 | mandocdb ~/Library/man 16 | # download uninstall information: 17 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/lzmadec -o ~/Documents/.pkg/lzmadec --create-dirs --silent 18 | -------------------------------------------------------------------------------- /packages/markdown-it: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # install file for mmd6 auxiliary files: 3 | 4 | packagename=${0##*/} 5 | 6 | # download archive: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/markdown-it.tar.gz -o ~/tmp/markdown-it.tar.gz --create-dirs --silent 8 | 9 | mkdir -p ~/Library/node_modules 10 | cd ~/Library 11 | tar -xzf ~/tmp/markdown-it.tar.gz 12 | mkdir -p ~/Documents/bin 13 | mv markdown-it.js ~/Documents/bin/ 14 | mv markdown-viewer.sh ~/Documents/bin/ 15 | chmod +x ~/Documents/bin/markdown-it.js 16 | chmod +x ~/Documents/bin/markdown-viewer.sh 17 | cd - 18 | 19 | rm ~/tmp/markdown-it.tar.gz 20 | 21 | # download uninstall information: 22 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 23 | 24 | -------------------------------------------------------------------------------- /packages/minisign: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/mktemp: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/mmd6-tex-files: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # install file for mmd6 auxiliary files: 3 | 4 | packagename=${0##*/} 5 | 6 | # download archive: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/mmd6.tar.gz -o ~/tmp/mmd6.tar.gz --create-dirs --silent 8 | 9 | mkdir -p ~/Library/texlive/texmf-local/tex/latex/ 10 | cd ~/Library/texlive/texmf-local/tex/latex/ 11 | tar -xzf ~/tmp/mmd6.tar.gz 12 | cd - 13 | mktexlsr 14 | 15 | rm ~/tmp/mmd6.tar.gz 16 | 17 | # download uninstall information: 18 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 19 | 20 | -------------------------------------------------------------------------------- /packages/monaco-editor: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # install file for mmd6 auxiliary files: 3 | 4 | packagename=${0##*/} 5 | 6 | # download archive: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/monaco-editor.tar.gz -o ~/tmp/monaco-editor.tar.gz --create-dirs --silent 8 | 9 | mkdir -p ~/Library/node_modules 10 | cd ~/Library/node_modules 11 | tar -xzf ~/tmp/monaco-editor.tar.gz 12 | mkdir -p ~/Documents/bin 13 | mv monaco-editor.sh ~/Documents/bin/ 14 | chmod +x ~/Documents/bin/monaco-editor.sh 15 | cd - 16 | 17 | rm ~/tmp/monaco-editor.tar.gz 18 | 19 | # download uninstall information: 20 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 21 | 22 | -------------------------------------------------------------------------------- /packages/morse: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename.wasm3 --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename.wasm3 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man6/$packagename.6 -o ~/Library/man/man6/$packagename.6 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/ncal: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/nl: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/nnn: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/oathtool: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/paste: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # download command: 3 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/paste -o ~/Documents/bin/paste --create-dirs --silent 4 | chmod +x ~/Documents/bin/paste 5 | # download man page 6 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/paste.1 -o ~/Library/man/man1/paste.1 --create-dirs --silent 7 | # refresh man database 8 | mandocdb ~/Library/man 9 | # download uninstall information: 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/paste -o ~/Documents/.pkg/paste --create-dirs --silent 11 | -------------------------------------------------------------------------------- /packages/printf: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/rg: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | rm -f ~/Documents/bin/$packagename 8 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename.wasm3 --create-dirs --silent 9 | chmod +x ~/Documents/bin/$packagename.wasm3 10 | 11 | # download uninstall information: 12 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 13 | -------------------------------------------------------------------------------- /packages/rs: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/scheme-s7: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # download command: 3 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/s7.tar.gz -o ~/tmp/s7.tar.gz --create-dirs --silent 4 | 5 | mkdir -p ~/Library/share 6 | cd ~/Library/share 7 | tar -xzf ~/tmp/s7.tar.gz 8 | mkdir -p ~/Documents/bin 9 | mv s7/repl ~/Documents/bin 10 | 11 | echo "s7 is a Scheme interpreter. Manual available here: https://ccrma.stanford.edu/software/s7/s7.html" 12 | echo "Binary installed in ~/Documents/bin/repl. Scheme files installed in ~/Library/share/s7." 13 | 14 | # download uninstall information: 15 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/scheme-s7 -o ~/Documents/.pkg/scheme-s7 --create-dirs --silent 16 | -------------------------------------------------------------------------------- /packages/seq: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/split: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/sqlite3: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # download command: 3 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/sqlite3.wasm -o ~/Documents/bin/sqlite3.wasm --create-dirs --silent 4 | chmod +x ~/Documents/bin/sqlite3.wasm 5 | # download man page 6 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/sqlite3.1 -o ~/Library/man/man1/sqlite3.1 --create-dirs --silent 7 | # refresh man database 8 | mandocdb ~/Library/man 9 | # download uninstall information: 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/sqlite3 -o ~/Documents/.pkg/sqlite3 --create-dirs --silent 11 | -------------------------------------------------------------------------------- /packages/ssh-copy-id: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | echo Installing mktemp: 4 | 5 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/mktemp -o ~/Documents/bin/mktemp --create-dirs --silent 6 | chmod +x ~/Documents/bin/mktemp 7 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/mktemp.1 -o ~/Library/man/man1/mktemp.1 --create-dirs --silent 8 | 9 | 10 | # Default install file for packages (here ssh-copy-id): 11 | 12 | packagename=${0##*/} 13 | 14 | # download command: 15 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 16 | chmod +x ~/Documents/bin/$packagename 17 | # download man page 18 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 19 | # refresh man database 20 | mandocdb ~/Library/man 21 | # download uninstall information: 22 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 23 | 24 | -------------------------------------------------------------------------------- /packages/strings: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/texlive: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # install file for LLVM/clang auxiliary files: 3 | 4 | packagename=${0##*/} 5 | 6 | if [ -d ~/Library/texlive/2023 ] 7 | then 8 | echo "Moving your ~/Library/texlive/2023 directory to ~/Library/texlive/2024" 9 | mv ~/Library/texlive/2023 ~/Library/texlive/2024 10 | fi 11 | # download archive: 12 | echo "Downloading the texlive-2024 distribution: (this may take a while)" 13 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/texlive_2024.tar.gz -o ~/tmp/texlive.tar.gz --create-dirs 14 | echo "Downloading done, unpacking:" 15 | 16 | mkdir -p ~/Library/texlive 17 | cd ~/Library/texlive 18 | tar -xzf ~/tmp/texlive.tar.gz 19 | cd - 20 | 21 | rm ~/tmp/texlive.tar.gz 22 | echo "Done, updating command list" 23 | # update commands list: 24 | updateCommands 25 | 26 | # download uninstall information: 27 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 28 | 29 | -------------------------------------------------------------------------------- /packages/texlive-2025: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # install file for LLVM/clang auxiliary files: 3 | 4 | packagename=${0##*/} 5 | 6 | if [ -d ~/Library/texlive/2023 ] 7 | then 8 | echo "Moving your ~/Library/texlive/2023 directory to ~/Library/texlive/2025" 9 | mv ~/Library/texlive/2023 ~/Library/texlive/2025 10 | fi 11 | if [ -d ~/Library/texlive/2024 ] 12 | then 13 | echo "Moving your ~/Library/texlive/2024 directory to ~/Library/texlive/2025" 14 | mv ~/Library/texlive/2024 ~/Library/texlive/2025 15 | fi 16 | # download archive: 17 | echo "Downloading the texlive-2025 distribution: (this may take a while)" 18 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/texlive_2025.tar.gz -o ~/tmp/texlive.tar.gz --create-dirs 19 | echo "Downloading done, unpacking:" 20 | 21 | mkdir -p ~/Library/texlive 22 | cd ~/Library/texlive 23 | tar -xzf ~/tmp/texlive.tar.gz 24 | cd - 25 | 26 | rm ~/tmp/texlive.tar.gz 27 | echo "Done, updating command list" 28 | # update commands list: 29 | updateCommands 30 | 31 | # download uninstall information: 32 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 33 | 34 | -------------------------------------------------------------------------------- /packages/texlive_fonts: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # install file for LLVM/clang auxiliary files: 3 | 4 | packagename=${0##*/} 5 | 6 | # download archive: 7 | echo "Downloading the texlive-2024 OpenType and TrueType fonts: (this may take a while)" 8 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/texlive_fonts_2024.tar.gz -o ~/tmp/texlive_fonts.tar.gz --create-dirs 9 | echo "Downloading done, unpacking:" 10 | 11 | mkdir -p ~/Library/texlive 12 | cd ~/Library/texlive 13 | tar -xzf ~/tmp/texlive_fonts.tar.gz 14 | cd - 15 | 16 | rm ~/tmp/texlive_fonts.tar.gz 17 | echo "Done, updating command list" 18 | # update commands list: 19 | updateCommands 20 | 21 | # download uninstall information: 22 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 23 | 24 | -------------------------------------------------------------------------------- /packages/texlive_fonts-2025: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # install file for LLVM/clang auxiliary files: 3 | 4 | packagename=${0##*/} 5 | 6 | # download archive: 7 | echo "Downloading the texlive-2025 OpenType and TrueType fonts: (this may take a while)" 8 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/texlive_fonts_2025.tar.gz -o ~/tmp/texlive_fonts.tar.gz --create-dirs 9 | echo "Downloading done, unpacking:" 10 | 11 | mkdir -p ~/Library/texlive 12 | cd ~/Library/texlive 13 | tar -xzf ~/tmp/texlive_fonts.tar.gz 14 | cd - 15 | 16 | rm ~/tmp/texlive_fonts.tar.gz 17 | echo "Done, updating command list" 18 | # update commands list: 19 | updateCommands 20 | 21 | # download uninstall information: 22 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 23 | 24 | -------------------------------------------------------------------------------- /packages/unexpand: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/which: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | -------------------------------------------------------------------------------- /packages/xmlcatalog: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | 16 | -------------------------------------------------------------------------------- /packages/xmllint: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | 16 | -------------------------------------------------------------------------------- /packages/xsltproc: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Default install file for packages: 3 | 4 | packagename=${0##*/} 5 | 6 | # download command: 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$packagename -o ~/Documents/bin/$packagename --create-dirs --silent 8 | chmod +x ~/Documents/bin/$packagename 9 | # download man page 10 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$packagename.1 -o ~/Library/man/man1/$packagename.1 --create-dirs --silent 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | # download uninstall information: 14 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/$packagename -o ~/Documents/.pkg/$packagename --create-dirs --silent 15 | 16 | -------------------------------------------------------------------------------- /packages/xz: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # download command: 3 | echo Downloading xz + xzdec 4 | rm -f ~/Documents/bin/xz 5 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/xz -o ~/Documents/bin/xz.wasm3 --create-dirs --silent 6 | chmod +x ~/Documents/bin/xz.wasm3 7 | rm -f ~/Documents/bin/xzdec 8 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/xzdec -o ~/Documents/bin/xzdec.wasm3 --create-dirs --silent 9 | chmod +x ~/Documents/bin/xzdec.wasm3 10 | # download man page 11 | echo Downloading man pages 12 | curl -l https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/xz.1 -o ~/Library/man/man1/xz.1 --create-dirs --silent 13 | curl -l https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/xzdec.1 -o ~/Library/man/man1/xzdec.1 --create-dirs --silent 14 | # refresh man database 15 | mandocdb ~/Library/man 16 | # download uninstall information: 17 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/xz -o ~/Documents/.pkg/xz --create-dirs --silent 18 | -------------------------------------------------------------------------------- /packages/zip: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | for command in funzip unzip unzipsfx zip zipcloak zipnote zipsplit 3 | do 4 | # download command: 5 | echo Downloading $command 6 | rm -f ~/Documents/bin/$command.wasm 7 | curl -L https://github.com/holzschu/a-Shell-commands/releases/download/0.1/$command.wasm -o ~/Documents/bin/$command.wasm3 --create-dirs --silent 8 | chmod +x ~/Documents/bin/$command.wasm3 9 | # download man page 10 | curl -l https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/man/man1/$command.1 -o ~/Library/man/man1/$command.1 --create-dirs --silent 11 | done 12 | # refresh man database 13 | mandocdb ~/Library/man 14 | # download uninstall information: 15 | curl -L https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/uninstall/zip -o ~/Documents/.pkg/zip --create-dirs --silent 16 | -------------------------------------------------------------------------------- /pkg: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Tool to install/remove commands to a-Shell 4 | # 5 | # options: 6 | # install packageName: pull server/packageName.pkg, execute script packageName.pkg, create .pkg/packageName 7 | # remove packageName: execute .pkg/packageName 8 | # list: show all installed packages 9 | # search + regexp: pull list from server, grep with regexp 10 | 11 | # main url. Can be overidden by environment variable 12 | if [ -z "$PKG_SERVER" ] 13 | then 14 | server=https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/ 15 | else 16 | server=$PKG_SERVER 17 | fi 18 | 19 | usage() { 20 | cat << 'EOF' 21 | Usage: pkg [install name] [remove name] [list] [search expression] 22 | install: installs package "name" 23 | remove: removes package "name" 24 | list: list all installed packages 25 | search: lists packages matching expression 26 | 27 | pkg will search for packages on $PKG_SERVER, if it set, and https://raw.githubusercontent.com/holzschu/a-Shell-commands/master/ otherwise 28 | EOF 29 | } 30 | 31 | list() { 32 | if [ -d ~/Documents/.pkg ] 33 | then 34 | ls -1 ~/Documents/.pkg/ 35 | else 36 | echo No packages installed yet 37 | fi 38 | } 39 | 40 | search() { 41 | echo Packages available: 42 | if [ -z $1 ] 43 | then 44 | curl -L $server/list --silent 45 | else 46 | expression=$1 47 | curl -L $server/list --silent | grep $expression 48 | fi 49 | } 50 | 51 | install() { 52 | for name in $@ 53 | do 54 | if [ $# -ge 2 ] 55 | then 56 | echo Processing $name 57 | fi 58 | curl -L $server/list --silent | grep ^$name > ~/tmp/packageList 59 | length=`wc -l < ~/tmp/packageList` 60 | if [ $length -eq 0 ] 61 | then 62 | echo Package $name not found 63 | elif [ $length -eq 1 ] 64 | then 65 | packageName=`cat ~/tmp/packageList` 66 | echo Downloading $packageName 67 | curl -L $server/packages/$packageName -o ~/tmp/$packageName --silent 68 | chmod +x ~/tmp/$packageName 69 | sh ~/tmp/$packageName 70 | rm ~/tmp/$packageName 71 | rehash 72 | echo Done 73 | else 74 | packageFound=0 75 | for packageName in `cat ~/tmp/packageList` 76 | do 77 | if [ $packageName = $name ] 78 | then 79 | echo Downloading $packageName 80 | curl -L $server/packages/$packageName -o ~/tmp/$packageName --silent 81 | chmod +x ~/tmp/$packageName 82 | sh ~/tmp/$packageName 83 | rm ~/tmp/$packageName 84 | rehash 85 | packageFound=1 86 | echo Done 87 | break 88 | fi 89 | done 90 | if [ $packageFound -eq 0 ] 91 | then 92 | echo Package name $name unclear. Did you mean: 93 | cat ~/tmp/packageList 94 | fi 95 | fi 96 | rm ~/tmp/packageList 97 | done 98 | } 99 | 100 | remove() { 101 | for name in $@ 102 | do 103 | if [ $# -ge 2 ] 104 | then 105 | echo Processing $name 106 | fi 107 | if [ -f ~/Documents/.pkg/$name ] 108 | then 109 | echo Removing $name 110 | sh ~/Documents/.pkg/$name 111 | rm ~/Documents/.pkg/$name 112 | mandocdb ~/Library/man 113 | rehash 114 | echo Done 115 | else 116 | echo Package $name was not installed by pkg. Cannot remove it. 117 | fi 118 | done 119 | } 120 | 121 | case $1 in 122 | install|update|upgrade) 123 | shift 124 | install $@ 125 | ;; 126 | list) list;; 127 | remove|uninstall) 128 | shift 129 | remove $@ 130 | ;; 131 | search) search $2;; 132 | *) usage 133 | esac 134 | -------------------------------------------------------------------------------- /uninstall/ace-editor: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | rm ~/Documents/bin/ace-editor.sh 7 | rm -rf ~/Library/node_modules/ace 8 | -------------------------------------------------------------------------------- /uninstall/age: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # remove command 3 | rm -f ~/Documents/bin/age.wasm3 4 | rm -f ~/Documents/bin/age-keygen.wasm3 5 | # remove man page 6 | rm ~/Library/man/man1/age.1 7 | rm ~/Library/man/man1/age-keygen.1 8 | # refresh man database 9 | mandocdb ~/Library/man 10 | # 11 | 12 | -------------------------------------------------------------------------------- /uninstall/banner: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm -f ~/Documents/bin/$packagename 8 | rm -f ~/Documents/bin/$packagename.wasm3 9 | # remove man page 10 | rm ~/Library/man/man6/$packagename.6 11 | # refresh man database 12 | mandocdb ~/Library/man 13 | -------------------------------------------------------------------------------- /uninstall/base64: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | rm ~/Documents/bin/base64 3 | -------------------------------------------------------------------------------- /uninstall/basename: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/cal: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/checkbashisms: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man -------------------------------------------------------------------------------- /uninstall/codemirror: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | rm ~/Documents/bin/codemirror.sh 7 | rm -rf ~/Library/codemirror* 8 | rm -rf ~/Library/node_modules/codemirror* 9 | rm -rf ~/Library/node_modules/@codemirror 10 | rm -rf ~/Library/node_modules/@lezer 11 | rm -rf ~/Library/node_modules/crelt 12 | rm -rf ~/Library/node_modules/style-mod 13 | rm -rf ~/Library/node_modules/w3c-keyname 14 | 15 | -------------------------------------------------------------------------------- /uninstall/col: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/colrm: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/column: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/comm: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/csplit: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/cut: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/dirname: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/expand: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/expr: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/f2c: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # remove command 3 | rm -f ~/Documents/bin/f2c 4 | # libf2c.a was installed in two places; delete both: 5 | rm -f ~/Library/lib/wasm32-wasi/libf2c.a 6 | rm -f ~/Library/usr/lib/wasm32-wasi/libf2c.a 7 | rm -f ~/Library/usr/lib/wasm32-wasip1/libf2c.a 8 | rm -f ~/Library/usr/lib/wasm32-wasip1-threads/libf2c.a 9 | rm -f ~/Library/usr/lib/wasm32-wasi-threads/libf2c.a 10 | rm -f ~/Library/usr/include/wasm32-wasi/f2c.h 11 | rm -f ~/Library/usr/include/wasm32-wasip1/f2c.h 12 | rm -f ~/Library/usr/include/wasm32-wasip1-threads/f2c.h 13 | rm -f ~/Library/usr/include/wasm32-wasi-threads/f2c.h 14 | # remove man page 15 | rm -f ~/Library/man/man1/f2c.1 16 | # refresh man database 17 | mandocdb ~/Library/man 18 | # 19 | 20 | -------------------------------------------------------------------------------- /uninstall/false: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/fmt: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/fold: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/gawk: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/getopt: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/git: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | rm ~/Documents/bin/git 3 | -------------------------------------------------------------------------------- /uninstall/gnu-pw-mgr: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove commands 7 | rm ~/Documents/bin/$packagename 8 | rm ~/Documents/bin/sort-pw-cfg 9 | # remove man page: no man pages 10 | -------------------------------------------------------------------------------- /uninstall/gperf: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | 13 | -------------------------------------------------------------------------------- /uninstall/graphviz: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove commands 7 | rm ~/Documents/bin/acyclic 8 | rm ~/Documents/bin/bcomps 9 | rm ~/Documents/bin/ccomps 10 | rm ~/Documents/bin/cluster 11 | rm ~/Documents/bin/diffimg 12 | rm ~/Documents/bin/dijkstra 13 | rm ~/Documents/bin/dot 14 | rm ~/Documents/bin/dot2gxl 15 | rm ~/Documents/bin/edgepaint 16 | rm ~/Documents/bin/gc 17 | rm ~/Documents/bin/gml2gv 18 | rm ~/Documents/bin/graphml2gv 19 | rm ~/Documents/bin/gv2gml 20 | rm ~/Documents/bin/gv2gxl 21 | rm ~/Documents/bin/gvcolor 22 | rm ~/Documents/bin/gvgen 23 | rm ~/Documents/bin/gvmap 24 | rm ~/Documents/bin/gvmap.sh 25 | rm ~/Documents/bin/gvpack 26 | rm ~/Documents/bin/gvpr 27 | rm ~/Documents/bin/gxl2dot 28 | rm ~/Documents/bin/gxl2gv 29 | rm ~/Documents/bin/mm2gv 30 | rm ~/Documents/bin/nop 31 | rm ~/Documents/bin/prune 32 | rm ~/Documents/bin/sccmap 33 | rm ~/Documents/bin/tred 34 | rm ~/Documents/bin/unflatten 35 | # remove man pages 36 | rm ~/Library/man/man1/acyclic.1 37 | rm ~/Library/man/man1/bcomps.1 38 | rm ~/Library/man/man1/ccomps.1 39 | rm ~/Library/man/man1/circo.1 40 | rm ~/Library/man/man1/cluster.1 41 | rm ~/Library/man/man1/diffimg.1 42 | rm ~/Library/man/man1/dijkstra.1 43 | rm ~/Library/man/man1/dot.1 44 | rm ~/Library/man/man1/dot2gxl.1 45 | rm ~/Library/man/man1/edgepaint.1 46 | rm ~/Library/man/man1/fdp.1 47 | rm ~/Library/man/man1/gc.1 48 | rm ~/Library/man/man1/gml2gv.1 49 | rm ~/Library/man/man1/graphml2gv.1 50 | rm ~/Library/man/man1/gv2gml.1 51 | rm ~/Library/man/man1/gv2gxl.1 52 | rm ~/Library/man/man1/gvcolor.1 53 | rm ~/Library/man/man1/gvgen.1 54 | rm ~/Library/man/man1/gvmap.1 55 | rm ~/Library/man/man1/gvmap.sh.1 56 | rm ~/Library/man/man1/gvpack.1 57 | rm ~/Library/man/man1/gvpr.1 58 | rm ~/Library/man/man1/gxl2dot.1 59 | rm ~/Library/man/man1/gxl2gv.1 60 | rm ~/Library/man/man1/mm2gv.1 61 | rm ~/Library/man/man1/neato.1 62 | rm ~/Library/man/man1/nop.1 63 | rm ~/Library/man/man1/osage.1 64 | rm ~/Library/man/man1/patchwork.1 65 | rm ~/Library/man/man1/prune.1 66 | rm ~/Library/man/man1/sccmap.1 67 | rm ~/Library/man/man1/sfdp.1 68 | rm ~/Library/man/man1/tred.1 69 | rm ~/Library/man/man1/twopi.1 70 | rm ~/Library/man/man1/unflatten.1 71 | rm ~/Library/man/man7/graphviz.7 72 | # refresh man database 73 | mandocdb ~/Library/man 74 | -------------------------------------------------------------------------------- /uninstall/hexdump: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | rm ~/Documents/bin/od 9 | rm ~/Documents/bin/hd 10 | # remove man page 11 | rm ~/Library/man/man1/$packagename.1 12 | rm ~/Library/man/man1/od.1 13 | # refresh man database 14 | mandocdb ~/Library/man 15 | -------------------------------------------------------------------------------- /uninstall/imgcat: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | -------------------------------------------------------------------------------- /uninstall/join: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/jot: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/json2csv: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | rm ~/Documents/bin/json2csv 3 | -------------------------------------------------------------------------------- /uninstall/lam: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/llvm: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | rm -rf ~/Library/usr 7 | # update commands list: 8 | updateCommands 9 | -------------------------------------------------------------------------------- /uninstall/llvm-18: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | rm -rf ~/Library/usr 7 | # update commands list: 8 | updateCommands 9 | -------------------------------------------------------------------------------- /uninstall/look: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove dictionary 9 | rm ~/Library/share/dict/words 10 | 11 | # remove man page 12 | rm ~/Library/man/man1/$packagename.1 13 | # refresh man database 14 | mandocdb ~/Library/man 15 | -------------------------------------------------------------------------------- /uninstall/lzmadec: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # remove command 3 | rm -f ~/Documents/bin/lzmadec.wasm 4 | rm -f ~/Documents/bin/lzmainfo.wasm 5 | rm -f ~/Documents/bin/lzmadec.wasm3 6 | rm -f ~/Documents/bin/lzmainfo.wasm3 7 | # remove man page 8 | rm ~/Library/man/man1/lzmadec.1 9 | rm ~/Library/man/man1/lzmainfo.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | # 13 | 14 | -------------------------------------------------------------------------------- /uninstall/markdown-it: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | rm ~/Documents/bin/markdown-it.js 7 | rm ~/Documents/bin/markdown-viewer.sh 8 | # Remove all npm packages installed by markdown-it. 9 | # This will create an issue when another JS command shares these packages 10 | # For the time being, there are none. 11 | rm -rf ~/Library/node_modules/@braintree 12 | rm -rf ~/Library/node_modules/character-entities 13 | rm -rf ~/Library/node_modules/cose-base 14 | rm -rf ~/Library/node_modules/cytoscape 15 | rm -rf ~/Library/node_modules/cytoscape-cose-bilkent 16 | rm -rf ~/Library/node_modules/cytoscape-fcose 17 | rm -rf ~/Library/node_modules/d3 18 | rm -rf ~/Library/node_modules/d3-array 19 | rm -rf ~/Library/node_modules/d3-axis 20 | rm -rf ~/Library/node_modules/d3-brush 21 | rm -rf ~/Library/node_modules/d3-chord 22 | rm -rf ~/Library/node_modules/d3-color 23 | rm -rf ~/Library/node_modules/d3-contour 24 | rm -rf ~/Library/node_modules/d3-delaunay 25 | rm -rf ~/Library/node_modules/d3-dispatch 26 | rm -rf ~/Library/node_modules/d3-drag 27 | rm -rf ~/Library/node_modules/d3-dsv 28 | rm -rf ~/Library/node_modules/d3-ease 29 | rm -rf ~/Library/node_modules/d3-fetch 30 | rm -rf ~/Library/node_modules/d3-force 31 | rm -rf ~/Library/node_modules/d3-format 32 | rm -rf ~/Library/node_modules/d3-geo 33 | rm -rf ~/Library/node_modules/d3-hierarchy 34 | rm -rf ~/Library/node_modules/d3-interpolate 35 | rm -rf ~/Library/node_modules/d3-path 36 | rm -rf ~/Library/node_modules/d3-polygon 37 | rm -rf ~/Library/node_modules/d3-quadtree 38 | rm -rf ~/Library/node_modules/d3-random 39 | rm -rf ~/Library/node_modules/d3-sankey 40 | rm -rf ~/Library/node_modules/d3-scale 41 | rm -rf ~/Library/node_modules/d3-scale-chromatic 42 | rm -rf ~/Library/node_modules/d3-selection 43 | rm -rf ~/Library/node_modules/d3-shape 44 | rm -rf ~/Library/node_modules/d3-time 45 | rm -rf ~/Library/node_modules/d3-time-format 46 | rm -rf ~/Library/node_modules/d3-timer 47 | rm -rf ~/Library/node_modules/d3-transition 48 | rm -rf ~/Library/node_modules/d3-zoom 49 | rm -rf ~/Library/node_modules/dagre-d3-es 50 | rm -rf ~/Library/node_modules/dagre-d3-renderer 51 | rm -rf ~/Library/node_modules/dagre-layout 52 | rm -rf ~/Library/node_modules/dayjs 53 | rm -rf ~/Library/node_modules/decode-named-character-reference 54 | rm -rf ~/Library/node_modules/delaunator 55 | rm -rf ~/Library/node_modules/dequal 56 | rm -rf ~/Library/node_modules/diff 57 | rm -rf ~/Library/node_modules/dompurify 58 | rm -rf ~/Library/node_modules/elkjs 59 | rm -rf ~/Library/node_modules/graphlib 60 | rm -rf ~/Library/node_modules/graphlibrary 61 | rm -rf ~/Library/node_modules/he 62 | rm -rf ~/Library/node_modules/heap 63 | rm -rf ~/Library/node_modules/highlight.js 64 | rm -rf ~/Library/node_modules/internmap 65 | rm -rf ~/Library/node_modules/khroma 66 | rm -rf ~/Library/node_modules/kleur 67 | rm -rf ~/Library/node_modules/layout-base 68 | rm -rf ~/Library/node_modules/linkify-it 69 | rm -rf ~/Library/node_modules/markdown-it 70 | rm -rf ~/Library/node_modules/markdown-it-abbr 71 | rm -rf ~/Library/node_modules/markdown-it-container 72 | rm -rf ~/Library/node_modules/markdown-it-deflist 73 | rm -rf ~/Library/node_modules/markdown-it-emoji 74 | rm -rf ~/Library/node_modules/markdown-it-footnote 75 | rm -rf ~/Library/node_modules/markdown-it-ins 76 | rm -rf ~/Library/node_modules/markdown-it-katex 77 | rm -rf ~/Library/node_modules/markdown-it-mark 78 | rm -rf ~/Library/node_modules/markdown-it-mathjax 79 | rm -rf ~/Library/node_modules/markdown-it-mermaid 80 | rm -rf ~/Library/node_modules/markdown-it-sub 81 | rm -rf ~/Library/node_modules/markdown-it-sup 82 | rm -rf ~/Library/node_modules/match-at 83 | rm -rf ~/Library/node_modules/mdast-util-from-markdown 84 | rm -rf ~/Library/node_modules/mdast-util-to-string 85 | rm -rf ~/Library/node_modules/mdurl 86 | rm -rf ~/Library/node_modules/mermaid 87 | rm -rf ~/Library/node_modules/micromark 88 | rm -rf ~/Library/node_modules/micromark-core-commonmark 89 | rm -rf ~/Library/node_modules/micromark-factory-destination 90 | rm -rf ~/Library/node_modules/micromark-factory-label 91 | rm -rf ~/Library/node_modules/micromark-factory-space 92 | rm -rf ~/Library/node_modules/micromark-factory-title 93 | rm -rf ~/Library/node_modules/micromark-factory-whitespace 94 | rm -rf ~/Library/node_modules/micromark-util-character 95 | rm -rf ~/Library/node_modules/micromark-util-chunked 96 | rm -rf ~/Library/node_modules/micromark-util-classify-character 97 | rm -rf ~/Library/node_modules/micromark-util-combine-extensions 98 | rm -rf ~/Library/node_modules/micromark-util-decode-numeric-character-reference 99 | rm -rf ~/Library/node_modules/micromark-util-decode-string 100 | rm -rf ~/Library/node_modules/micromark-util-encode 101 | rm -rf ~/Library/node_modules/micromark-util-html-tag-name 102 | rm -rf ~/Library/node_modules/micromark-util-normalize-identifier 103 | rm -rf ~/Library/node_modules/micromark-util-resolve-all 104 | rm -rf ~/Library/node_modules/micromark-util-sanitize-uri 105 | rm -rf ~/Library/node_modules/micromark-util-subtokenize 106 | rm -rf ~/Library/node_modules/micromark-util-symbol 107 | rm -rf ~/Library/node_modules/micromark-util-types 108 | rm -rf ~/Library/node_modules/moment 109 | rm -rf ~/Library/node_modules/mri 110 | rm -rf ~/Library/node_modules/non-layered-tidy-tree-layout 111 | rm -rf ~/Library/node_modules/robust-predicates 112 | rm -rf ~/Library/node_modules/rw 113 | rm -rf ~/Library/node_modules/sade 114 | rm -rf ~/Library/node_modules/stylis 115 | rm -rf ~/Library/node_modules/ts-dedent 116 | rm -rf ~/Library/node_modules/uc.micro 117 | rm -rf ~/Library/node_modules/unist-util-stringify-position 118 | rm -rf ~/Library/node_modules/uvu 119 | rm -rf ~/Library/node_modules/web-worker 120 | rm ~/Library/node_modules/markdown-viewer.html 121 | rm ~/Library/node_modules/markdown-viewer.js 122 | -------------------------------------------------------------------------------- /uninstall/minisign: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/mktemp: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/mmd6-tex-files: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | rm -rf ~/Library/texlive/texmf-local/tex/latex/mmd6 7 | mktexlsr 8 | -------------------------------------------------------------------------------- /uninstall/monaco-editor: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | rm ~/Documents/bin/monaco-editor.sh 7 | rm -rf ~/Library/node_modules/monaco 8 | -------------------------------------------------------------------------------- /uninstall/morse: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename.wasm3 8 | # remove man page 9 | rm ~/Library/man/man6/$packagename.6 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/ncal: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/nl: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/nnn: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/oathtool: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/paste: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # remove command 3 | rm ~/Documents/bin/paste 4 | # remove man page 5 | rm ~/Library/man/man1/paste.1 6 | # refresh man database 7 | mandocdb ~/Library/man 8 | -------------------------------------------------------------------------------- /uninstall/printf: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/rg: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm -f ~/Documents/bin/$packagename 8 | rm -f ~/Documents/bin/$packagename.wasm3 9 | -------------------------------------------------------------------------------- /uninstall/rs: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/scheme-s7: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # remove command 3 | rm ~/Documents/bin/repl 4 | # remove scheme files: 5 | rm -rf ~/Library/share/s7 6 | -------------------------------------------------------------------------------- /uninstall/seq: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/split: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/sqlite3: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # remove command 3 | rm ~/Documents/bin/sqlite3.wasm 4 | # remove man page 5 | rm ~/Library/man/man1/sqlite3.1 6 | # refresh man database 7 | mandocdb ~/Library/man 8 | -------------------------------------------------------------------------------- /uninstall/ssh-copy-id: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | 11 | # uninstall dirname and expr, but only if they weren't installed separately: 12 | 13 | if [ -f ~/Documents/.pkg/mktemp ] 14 | then 15 | echo "Not removing mktemp (installed separately)" 16 | else 17 | echo "Removing mktemp" 18 | rm ~/Documents/bin/mktemp 19 | rm ~/Library/man/man1/mktemp.1 20 | fi 21 | 22 | # refresh man database 23 | mandocdb ~/Library/man 24 | -------------------------------------------------------------------------------- /uninstall/strings: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/texlive: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | rm -rf ~/Library/texlive/2024 7 | # update commands list: 8 | updateCommands 9 | -------------------------------------------------------------------------------- /uninstall/texlive-2025: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | rm -rf ~/Library/texlive/2025 7 | # update commands list: 8 | updateCommands 9 | -------------------------------------------------------------------------------- /uninstall/texlive_fonts: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | rm -rf ~/Library/texlive/2024/texmf-dist/fonts/opentype 7 | rm -rf ~/Library/texlive/2024/texmf-dist/fonts/truetype 8 | # update commands list: 9 | updateCommands 10 | -------------------------------------------------------------------------------- /uninstall/texlive_fonts-2025: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | rm -rf ~/Library/texlive/2025/texmf-dist/fonts/opentype 7 | rm -rf ~/Library/texlive/2025/texmf-dist/fonts/truetype 8 | # update commands list: 9 | updateCommands 10 | -------------------------------------------------------------------------------- /uninstall/unexpand: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/which: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | -------------------------------------------------------------------------------- /uninstall/xmlcatalog: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | 13 | -------------------------------------------------------------------------------- /uninstall/xmllint: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | 13 | -------------------------------------------------------------------------------- /uninstall/xsltproc: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Default uninstall file for packages: 4 | packagename=${0##*/} 5 | 6 | # remove command 7 | rm ~/Documents/bin/$packagename 8 | # remove man page 9 | rm ~/Library/man/man1/$packagename.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | 13 | -------------------------------------------------------------------------------- /uninstall/xz: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # remove command 3 | rm -f ~/Documents/bin/xz 4 | rm -f ~/Documents/bin/xzdec 5 | rm -f ~/Documents/bin/xz.wasm3 6 | rm -f ~/Documents/bin/xzdec.wasm3 7 | # remove man page 8 | rm ~/Library/man/man1/xz.1 9 | rm ~/Library/man/man1/xzdec.1 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | # 13 | 14 | -------------------------------------------------------------------------------- /uninstall/zip: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | for command in funzip unzip unzipsfx zip zipcloak zipnote zipsplit 3 | do 4 | # remove command 5 | rm -f ~/Documents/bin/$command.wasm 6 | rm -f ~/Documents/bin/$command.wasm3 7 | # remove man page 8 | rm ~/Library/man/man1/$command.1 9 | done 10 | # refresh man database 11 | mandocdb ~/Library/man 12 | --------------------------------------------------------------------------------