439 Commits (b2ef20e0d9615ccd5adef7e4286292c20fc729ea)
 

Author SHA1 Message Date
alexberry b2ef20e0d9
Forgot to add paths as utilised -i
Must add a file path when not piping to sed.
5 years ago
alexberry b2210a9ca2
Adding a few more useful examples.
Sed's cheat sheet was a little light, here are a few more examples.
5 years ago
Igor Chubin 44d15abd8d
Merge pull request #88 from terminalforlife/master
Tweaks & AWK Addition
5 years ago
terminalforlife 7da14d62dd Improve wording, grammar, and overall message
I've also corrected some syntax and cleaned up anything that was a bit
messy. I believe it's now more presentable.
5 years ago
terminalforlife 36b9feb0a2 Add pretty-print output taken from `/etc/passwd` 5 years ago
terminalforlife 524924166c Merge branch 'master' of https://github.com/chubin/cheat.sheets 5 years ago
Igor Chubin cfdd94c9c0
Merge pull request #87 from SoptikHa2/master
i3: Changed meta key symbol and added configuration guide
5 years ago
Petr Šťastný a8c7a70316
Split configuration guide into multiple segments 5 years ago
Petr Šťastný 9ac8548d2a
Fixed workspace ascii visualisation 5 years ago
terminalforlife 497c345247 Merge branch 'master' of https://github.com/chubin/cheat.sheets 5 years ago
Petr Šťastný e977e75e65
Removed empty line between sections 5 years ago
Petr Šťastný 50c8fce5bd
Changed meta key symbol and added configuration guide 5 years ago
terminalforlife e2b22d476b Address empty line issue mentioned in #83 PR
Had to remove the empty line else it would mess with the search
feature. I didn't realise these sheets are parsed.
5 years ago
Igor Chubin f3c83d2d0e
Merge pull request #86 from SoptikHa2/i3
Added i3 cheatsheet
5 years ago
Petr Šťastný 1b0728ca42
Added guide to precise new window positioning 5 years ago
Petr Šťastný a14798aab4
Added most useful i3 keybindings 5 years ago
terminalforlife 09e06fc821 Add syntax for fetching lines between patterns 5 years ago
terminalforlife 187916318f Tweaked comments and added alternative 5 years ago
Igor Chubin 7c88ba98f0 moved _scala/:main to _scala/_info.yaml (fixes #84) 5 years ago
Igor Chubin ad216096cd
Merge pull request #83 from terminalforlife/master
More of the Same
5 years ago
terminalforlife 0b61d3884e Fetch unique list of uppercase-only variables
Just wrote this because I'm wanting to convert numerous uppercase
variables in lots of shell programs to lowercase, except the initial
letter of a word. Manually, doing this would take forever.

First, however, I need to compile a list of variable names so I know
for what I want to search and replace, then omit certain ones typically
named in all uppercase, like `UID`, `USER`, `HOSTNAME`, etc, which I
will probably do by parsing `env` and various other special parameters
used by Bash.

Fun times.
5 years ago
terminalforlife 0ab091a8cd Add alternative approach to parsing `xev` 5 years ago
terminalforlife 81711828bc Add more examples using associate array variables 5 years ago
terminalforlife 6e507588ec Prefer `grep -[EF]` over deprecated `[ef]grep` 5 years ago
terminalforlife cd41a3e2ca Add line to list out available sections 5 years ago
terminalforlife 9c6e04b5c0 Add line to list unique DEB sections, using awk 5 years ago
Igor Chubin d8290aac76
Merge pull request #82 from terminalforlife/master
More Goodies
5 years ago
terminalforlife c08786cb0e Added alternative syntax for easier reading 5 years ago
terminalforlife 25f4ef1390 Add examples for `dpkg-deb` 5 years ago
terminalforlife 2c2a1f4fb6 Add file 'dpkg-deb' 5 years ago
terminalforlife e699f7c298 Add two examples for `apt-cache` 5 years ago
terminalforlife a388ee6534 Add file 'apt-cache' 5 years ago
terminalforlife 6955dd2709 Add extra information on source 5 years ago
terminalforlife b83d187fee Add file 'source', and briefly show its usage 5 years ago
terminalforlife 2e4f7be1b8 Add examples and detailed explanation of `umask` 5 years ago
terminalforlife be76804476 Add file 'umask' 5 years ago
terminalforlife 9feb9d7ddf Add a multitude of examples for apt-get 5 years ago
terminalforlife 4a67b1d9ad Add file 'apt-get' 5 years ago
terminalforlife 27c86e12f5 Add a number of examples for udisksctl 5 years ago
terminalforlife f5ec296286 Add 'udisksctl' file 5 years ago
Igor Chubin 134e596b71
Merge pull request #81 from terminalforlife/master
Additional New Entries, Counters, and Files
5 years ago
terminalforlife cddd2c0e11 List executable files found in PATH
Many uses for this!

Say you install a large set of updates, so want to cross-check the old
list to the new one, in order to find out which new executables were
installed.

Or, perhaps less obscure, you might this list, without the `-printf`
part, to check their permission and ownership settings.
5 years ago
terminalforlife a7e9bd13e1 Add 'nl' file and show basic example
Interestingly -- to me, at least, `nl` by default will only number
non-empty lines (coreutils v8.25), whereas `cat` will show all.
5 years ago
terminalforlife f04907ea0d Add examples and clean up existing ones
The examples given using xargs are so far mostly never or rarely ever
best used or even well used with xargs, such as with find, which is
popular, unfortunately.

My reason for adding counters to some of these examples, is that, as an
educational resource, I believe it's important users understand what is
and is _not_ good practice; this is, at least, how I taught myself.
5 years ago
terminalforlife 76109ca8cd Add 'sed' and give example of in-place changes
The `-i` flag with `sed` means "in-place", if you're curious; the use
thereof allows for making actual changes to the file, not just
superfluously, such as for additional parsing.

The `s///` is a simple substitution, wherein the `s` marks that it's a
substitution, the `/` marks the boundaries*, and the final boundary can
be suffixed with various flags, such as `g`, for global operations, -
and `i`, for case-insensitive operations.

* required, but the slash can switched for something else, if needed, -
such as `|`, which is commonly used for paths. For example:

  `s|/path/to/file|/path/file|`
5 years ago
terminalforlife 8af39f5168 Merge with upstream master 5 years ago
terminalforlife 69bbce3d28 Add vignette and grayscale example
I mostly use this sort of thing to create backgrounds which seem to go
nicely with my terminal theme and layout. Works well on nature images.
5 years ago
terminalforlife 0f22053f54 Fix and clean code and comments
The for loop was problematic for numerous reasons my headache won't
allow me to list. I've optimized it, while hoping to maintain the point
for which it was submitted.

A couple of typos were fixed; nothing major.
5 years ago
Igor Chubin 2a42d6b73d
Merge pull request #79 from terminalforlife/master
A Few Additional Code Lines (Likely More to Come)
5 years ago
Igor Chubin 21739f72f3
Merge pull request #80 from tuffacton/master
sheet for /proc pseudo-directory
5 years ago