mirror of
https://github.com/cheat/cheat.git
synced 2025-12-13 18:52:06 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b736083c3 | ||
|
|
b477df20b2 | ||
|
|
6304a65399 | ||
|
|
bc40ced2c1 |
@@ -38,7 +38,7 @@ from docopt import docopt
|
||||
|
||||
if __name__ == '__main__':
|
||||
# parse the command-line options
|
||||
options = docopt(__doc__, version='cheat 2.1.10')
|
||||
options = docopt(__doc__, version='cheat 2.1.11')
|
||||
|
||||
# list directories
|
||||
if options['--directories']:
|
||||
|
||||
5
cheat/cheatsheets/csplit
Normal file
5
cheat/cheatsheets/csplit
Normal file
@@ -0,0 +1,5 @@
|
||||
# Split a file based on pattern
|
||||
csplit input.file '/PATTERN/'
|
||||
|
||||
# Use prefix/suffix to improve resulting file names
|
||||
csplit -f 'prefix-' -b '%d.extension' input.file '/PATTERN/' '{*}'
|
||||
5
cheat/cheatsheets/man
Normal file
5
cheat/cheatsheets/man
Normal file
@@ -0,0 +1,5 @@
|
||||
# Convert a man page to pdf
|
||||
man -t bash | ps2pdf - bash.pdf
|
||||
|
||||
# View the ascii chart
|
||||
man 7 ascii
|
||||
2
cheat/cheatsheets/numfmt
Normal file
2
cheat/cheatsheets/numfmt
Normal file
@@ -0,0 +1,2 @@
|
||||
# Convert bytes to Human readable format
|
||||
numfmt --to=iec --suffix=B --padding=7 1048576
|
||||
Reference in New Issue
Block a user