2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-03 15:40:17 +00:00
Go to file
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|`
2019-11-06 15:22:56 +00:00
see_also added Bash-Snippets links 2017-07-17 21:07:15 +00:00
sheets Add 'sed' and give example of in-place changes 2019-11-06 15:22:56 +00:00
LICENSE Initial commit 2017-05-07 23:38:41 +02:00
README.md added some initial infos to README.md 2017-05-08 20:33:58 +00:00

cheat.sheets

Own cheat sheets repository of the cheat.sh.

If you want to add a cheat sheet to cheat.sh directly, add it here (please also consider adding your cheat sheet to one of the upstream repositories).

When adding a cheat sheet please use the following format:

# Command1 description 
# started with some comments
# and followed with a command example/switches
command1

# Command2 description
# Each block separated with an empty line
command2