linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux [2022/10/01 20:01] – roger | linux [2024/11/17 12:59] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 153: | Line 153: | ||
| Where ''/'' | Where ''/'' | ||
| + | |||
| + | ===== awk ===== | ||
| + | |||
| + | ==== Print the first column of a string ==== | ||
| + | |||
| + | <code bash> | ||
| + | echo "This is a string" | ||
| + | # Output: " | ||
| + | </ | ||
| + | |||
| + | ==== Print a full string in lowercase or uppercase ==== | ||
| + | |||
| + | <code bash> | ||
| + | echo "This Is A CaPiTaLiZeD String" | ||
| + | # Output: "this is a capitalized string" | ||
| + | |||
| + | echo "This Is A CaPiTaLiZeD String" | ||
| + | # Output: "THIS IS A CAPITALIZED STRING" | ||
| + | </ | ||
linux.1664654497.txt.gz · Last modified: 2024/11/17 12:59 (external edit)