sed
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sed [2015/05/08 19:52] – luke7858 | sed [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| sed ' | sed ' | ||
| </ | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | === remove anything before a character === | ||
| + | <sxh bash> | ||
| + | sed ' | ||
| + | </ | ||
| + | For example, if you are trying to get the log format for apache (centos): | ||
| + | <sxh bash> | ||
| + | grep ^ErrorLog / | ||
| + | </ | ||
| + | Returns | ||
| + | <sxh bash> | ||
| + | error_log | ||
| + | </ | ||
| + | Sometimes format is error.log | ||
sed.1431114778.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
