linux:shellcommands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:shellcommands [2018/05/05 12:44] – [sed] admin | linux:shellcommands [2022/10/29 16:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 371: | Line 371: | ||
</ | </ | ||
The UNIX operating system. Unix system</ | The UNIX operating system. Unix system</ | ||
- | * <code bash> | + | * Substitute Unix with UNIX in file intro: |
sed --in-place ' | sed --in-place ' | ||
- | </ | + | </ |
- | * <code bash> | + | * Substitute Unix with UNIX< |
sed ' | sed ' | ||
- | </ | + | </ |
* example with -n option< | * example with -n option< | ||
sed -n ' | sed -n ' | ||
- | * <code bash>sed -n '/ | + | * Just print lines containing UNIX: <code bash> |
+ | sed -n '/ | ||
+ | </ | ||
* example Deleting Lines< | * example Deleting Lines< | ||
sed ' | sed ' | ||
</ | </ | ||
- | * <code bash>sed '/ | + | * Delete all lines containing UNIX:<code bash> |
+ | sed '/ | ||
+ | </ | ||
+ | * Delete all characters before string< | ||
+ | sed ' | ||
+ | </ | ||
==== awk ==== | ==== awk ==== | ||
# cat server | # cat server |
linux/shellcommands.1525524296.txt.gz · Last modified: 2022/10/29 16:15 (external edit)