Compare commits

...

5 Commits
2.1.7 ... 2.1.8

Author SHA1 Message Date
417f47f037 Version bump 2015-04-15 16:43:47 -04:00
f39fad1324 Merge pull request #212 from myfavouritekk/paste
Add a cheatsheet for paste.
2015-04-15 16:40:43 -04:00
4cf03c5363 Merge pull request #211 from Aayush-Kasurde/master
Added yum list command cheat
2015-04-15 16:38:52 -04:00
afcd74c8bf Add cheatsheet for paste. 2015-03-31 17:52:08 +08:00
e27ce3f1f9 Added yum list command cheat 2015-03-10 08:04:47 +05:30
4 changed files with 20 additions and 2 deletions

View File

@ -38,7 +38,7 @@ from docopt import docopt
if __name__ == '__main__':
# parse the command-line options
options = docopt(__doc__, version='cheat 2.1.7')
options = docopt(__doc__, version='cheat 2.1.8')
# list directories
if options['--directories']:

15
cheat/cheatsheets/paste Normal file
View File

@ -0,0 +1,15 @@
# Concat columns from files
paste file1 file2 ...
# List the files in the current directory in three columns:
ls | paste - - -
# Combine pairs of lines from a file into single lines:
paste -s -d '\t\n' myfile
# Number the lines in a file, similar to nl(1):
sed = myfile | paste -s -d '\t\n' - -
# Create a colon-separated list of directories named bin,
# suitable for use in the PATH environment variable:
find / -name bin -type d | paste -s -d : -

View File

@ -22,6 +22,9 @@ yum info <package name>
# List currently enabled repositories:
yum repolist
# List packages containing a certain keyword:
yum list <package_name_or_word_to_search>
# To download the source RPM for a package:
yumdownloader --source <package name>

View File

@ -3,7 +3,7 @@ import os
setup(
name = 'cheat',
version = '2.1.7',
version = '2.1.8',
author = 'Chris Lane',
author_email = 'chris@chris-allen-lane.com',
license = 'GPL3',